jenkins-bot merged this change.
[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.