jenkins-bot submitted this change.
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(-)
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 change 1154356. To unsubscribe, or for help writing mail filters, visit settings.