jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/633572 )

Change subject: [bugfix] do not encode str to bytes in imagetransfer.py
......................................................................

[bugfix] do not encode str to bytes in imagetransfer.py

Bug: T265257
Change-Id: I284ed2abf0334e1e415230cfb0b861dd7baa2dee
---
M scripts/imagetransfer.py
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/scripts/imagetransfer.py b/scripts/imagetransfer.py
index d251906..6e539d6 100755
--- a/scripts/imagetransfer.py
+++ b/scripts/imagetransfer.py
@@ -148,7 +148,7 @@
         @return: the filename which was used to upload the image
         """
         sourceSite = sourceImagePage.site
-        url = sourceImagePage.get_file_url().encode('utf-8')
+        url = sourceImagePage.get_file_url()
         pywikibot.output('URL should be: ' + url)
         # localize the text that should be printed on image description page
         try:

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/633572
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I284ed2abf0334e1e415230cfb0b861dd7baa2dee
Gerrit-Change-Number: 633572
Gerrit-PatchSet: 1
Gerrit-Owner: Mpaa <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to