jenkins-bot merged this change.

View Change

Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
[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(-)

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 change 567457. To unsubscribe, or for help writing mail filters, visit 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@gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: jenkins-bot (75)