Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/820837 )
Change subject: [IMPR]: fix docstring for page.ocr() method. ......................................................................
[IMPR]: fix docstring for page.ocr() method.
Fix docstring for page.ocr() method: - specify also 'wmfOCR' for ocr_tool parameter.
Change-Id: I4829d80d9ec79354df97c1a2e95dab0f4939ecc5 --- M pywikibot/proofreadpage.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Xqt: Verified; Looks good to me, approved Mpaa: Looks good to me, approved
diff --git a/pywikibot/proofreadpage.py b/pywikibot/proofreadpage.py index 2f98b6c..6004a73 100644 --- a/pywikibot/proofreadpage.py +++ b/pywikibot/proofreadpage.py @@ -736,7 +736,8 @@
It is the user's responsibility to reset quality level accordingly.
- :param ocr_tool: 'phetools' or 'googleOCR', default is 'phetools' + :param ocr_tool: 'phetools', 'wmfOCR' or 'googleOCR'; + default is 'phetools'
:return: OCR text for the page.
pywikibot-commits@lists.wikimedia.org