jenkins-bot has submitted this change and it was merged.

Change subject: minor and important fix of webbrowser
......................................................................


minor and important fix of webbrowser

When system wants a cpatcha, you need to import webbrowser in order to be able 
to open it!

Change-Id: I875217b03d9a9dc47d4a5bdc20ea9f10cc26d223
---
M pywikibot/site.py
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Ladsgroup: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/site.py b/pywikibot/site.py
index e203f0b..13f0cd5 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -2773,6 +2773,7 @@
                         req['captchaword'] = input(captcha["question"])
                         continue
                     elif "url" in captcha:
+                        import webbrowser
                         webbrowser.open(captcha["url"])
                         req['captchaword'] = cap_answerwikipedia.input(
 "Please view CAPTCHA in your browser, then type answer here:")

-- 
To view, visit https://gerrit.wikimedia.org/r/91871
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I875217b03d9a9dc47d4a5bdc20ea9f10cc26d223
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to