jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/567470 )

Change subject: [bugfix] Fix Python 2 Unicode error in page.py
......................................................................

[bugfix] Fix Python 2 Unicode error in page.py

Bug: T222623
Change-Id: Ida6af7b8971626d77a3b8aac3291b737c882bf4b
---
M pywikibot/page.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/page.py b/pywikibot/page.py
index ec0adc2..582300c 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -370,7 +370,7 @@
             title = title.replace(' ', '_')
         if as_url:
             encoded_title = title.encode(self.site.encoding())
-            title = quote_from_bytes(encoded_title, safe='')
+            title = quote_from_bytes(encoded_title, safe=str(''))
         if as_filename:
             # Replace characters that are not possible in file names on some
             # systems.

--
To view, visit https://gerrit.wikimedia.org/r/567470
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: Ida6af7b8971626d77a3b8aac3291b737c882bf4b
Gerrit-Change-Number: 567470
Gerrit-PatchSet: 2
Gerrit-Owner: Dvorapa <[email protected]>
Gerrit-Reviewer: Dvorapa <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot (75)
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to