jenkins-bot has submitted this change and it was merged.
Change subject: [bugfix] Fix UnicodeEncodeError ......................................................................
[bugfix] Fix UnicodeEncodeError
Bug: T89232 Change-Id: Ia93d717c3892d12f41d4580028b26bddc61036e1 --- M pywikibot/page.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: John Vandenberg: Verified; Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index ea260c7..3d357b8 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -1959,7 +1959,7 @@
target_link = target_page.title(asLink=True, textlink=True, allowInterwiki=False) - target_link = '#{0} {1}'.format(self.site.redirect(), target_link) + target_link = u'#{0} {1}'.format(self.site.redirect(), target_link) self.text = prefix + target_link + suffix if kwargs: self.save(**kwargs)
pywikibot-commits@lists.wikimedia.org