jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1154356?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: Ie41ec63f880a173aeb98e4d7e4a0cb5ec149f669
---
M scripts/category.py
1 file changed, 1 insertion(+), 2 deletions(-)

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




diff --git a/scripts/category.py b/scripts/category.py
index 040886a..b018035 100755
--- a/scripts/category.py
+++ b/scripts/category.py
@@ -159,7 +159,6 @@
 #
 from __future__ import annotations

-import codecs
 import math
 import os
 import pickle
@@ -1413,7 +1412,7 @@
         pywikibot.info()
         if self.filename:
             pywikibot.info('Saving results in ' + self.filename)
-            with codecs.open(self.filename, 'a', encoding='utf-8') as f:
+            with 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/+/1154356?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: Ie41ec63f880a173aeb98e4d7e4a0cb5ec149f669
Gerrit-Change-Number: 1154356
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