jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/567457 )
Change subject: [bugfix] preload urllib.quote() with Python 2 ......................................................................
[bugfix] preload urllib.quote() with Python 2
see https://github.com/jxtech/wechatpy/issues/375
Bug: T243710 Change-Id: I4ca356f7af915510d1820ad603a1d77be1ab5bd5 --- M pywikibot/data/api.py 1 file changed, 6 insertions(+), 0 deletions(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py index 02d3cfd..8e9132b 100644 --- a/pywikibot/data/api.py +++ b/pywikibot/data/api.py @@ -89,6 +89,12 @@ from urllib import urlencode, unquote from email.mime.multipart import MIMEMultipart
+ # Bug: T243710 (Python 2) + # see https://github.com/jxtech/wechatpy/issues/375 + from urllib import quote + quote(b'non-empty-string', safe=b'') + + _logger = 'data.api'
lagpattern = re.compile(
pywikibot-commits@lists.wikimedia.org