jenkins-bot merged this change.

View Change

Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
[bugfix] Add captcha support for "simple" type

Bug: T60546
Change-Id: Ia46ee1f2f26f8a9a4a1ec7ccbb5026775e9698cd
---
M pywikibot/site/__init__.py
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/pywikibot/site/__init__.py b/pywikibot/site/__init__.py
index 67604ac..3c4f4a8 100644
--- a/pywikibot/site/__init__.py
+++ b/pywikibot/site/__init__.py
@@ -5421,9 +5421,7 @@
captcha = result['edit']['captcha']
req['captchaid'] = captcha['id']

- if captcha['type'] == 'math':
- # TODO: Should the input be parsed through eval
- # in py3?
+ if captcha['type'] in ['math', 'simple']:
req['captchaword'] = input(captcha['question'])
continue


To view, visit change 572204. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia46ee1f2f26f8a9a4a1ec7ccbb5026775e9698cd
Gerrit-Change-Number: 572204
Gerrit-PatchSet: 4
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: BinĂ¡ris <wikiposta@gmail.com>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: Merlijn van Deen <valhallasw@arctus.nl>
Gerrit-Reviewer: Mpaa <mpaa.wiki@gmail.com>
Gerrit-Reviewer: Ysangkok <ysangkok@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)
Gerrit-CC: Alex Monk <krenair@gmail.com>