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