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(
--
To view, visit
https://gerrit.wikimedia.org/r/567457
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I4ca356f7af915510d1820ad603a1d77be1ab5bd5
Gerrit-Change-Number: 567457
Gerrit-PatchSet: 4
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: jenkins-bot (75)