jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1152041?usp=email )

Change subject: IMPR: replace codecs.open with open in category script
......................................................................

IMPR: replace codecs.open with open in category script

Bug: T395187
Change-Id: Ib204a10f34db75634031e137d397ee570197a9d9
---
M scripts/category.py
1 file changed, 1 insertion(+), 1 deletion(-)

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




diff --git a/scripts/category.py b/scripts/category.py
index 9b758c6..040886a 100755
--- a/scripts/category.py
+++ b/scripts/category.py
@@ -1413,7 +1413,7 @@
         pywikibot.info()
         if self.filename:
             pywikibot.info('Saving results in ' + self.filename)
-            with codecs.open(self.filename, 'a', 'utf-8') as f:
+            with codecs.open(self.filename, 'a', encoding='utf-8') as f:
                 f.write(tree)
         else:
             pywikibot.stdout(tree)

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

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ib204a10f34db75634031e137d397ee570197a9d9
Gerrit-Change-Number: 1152041
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to