Mpaa has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/258685

Change subject: api.py: fix UnicodeError in url_encode()
......................................................................

api.py: fix UnicodeError in url_encode()

Bug:T121318
Change-Id: Ifa4ca0268b4d0d50a3148e709d652aff9216e7e8
---
M pywikibot/data/api.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/85/258685/1

diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index abeafdf..af9e93d 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -3046,7 +3046,7 @@
         query = list(query.items())
 
     if PY2:
-        query = [(pair[0], pair[1].encode('utf-8')) for pair in query]
+        query = [(pair[0], pair[1]) for pair in query]
 
     # parameters ending on 'token' should go last
     # wpEditToken should go very last

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifa4ca0268b4d0d50a3148e709d652aff9216e7e8
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <[email protected]>

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

Reply via email to