jenkins-bot has submitted this change and it was merged.
Change subject: BUGFIX: correct import order ......................................................................
BUGFIX: correct import order
from urllib.parse import quote_from_bytes, unquote_to_bytes is the python 3 version, while from urllib import quote as quote_from_bytes, unquote as unquote_to_bytes is the python 2 version -- not the other way around.
Change-Id: Id3b61995e9685d87255fbce374a4118c372ddc2b --- M pywikibot/page.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index f3807dc..a4a946c 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -20,11 +20,11 @@
try: import htmlentitydefs - from urllib.parse import quote_from_bytes, unquote_to_bytes + from urllib import quote as quote_from_bytes, unquote as unquote_to_bytes except ImportError: unicode = str from html import entities as htmlentitydefs - from urllib import quote as quote_from_bytes, unquote as unquote_to_bytes + from urllib.parse import quote_from_bytes, unquote_to_bytes
import logging import re
pywikibot-commits@lists.wikimedia.org