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.
pywikibot-commits@lists.wikimedia.org