jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/365449 )
Change subject: [bugfix] Don't use mixed bytestring and unicode for filename
......................................................................
[bugfix] Don't use mixed bytestring and unicode for filename
Bug: T163349
Change-Id: If030c2db5e41a3786ec7c87fada1906cc03599a6
---
M scripts/makecat.py
1 file changed, 3 insertions(+), 1 deletion(-)
Approvals:
Merlijn van Deen: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/makecat.py b/scripts/makecat.py
index 20b2267..1903fd3 100755
--- a/scripts/makecat.py
+++ b/scripts/makecat.py
@@ -225,7 +225,9 @@
% (mysite.namespaces.CATEGORY,
workingcatname))
filename = pywikibot.config.datafilepath(
- 'category', workingcatname.encode('ascii',
'xmlcharrefreplace') + '_exclude.txt')
+ 'category',
+ workingcatname.encode('ascii',
'xmlcharrefreplace').decode('ascii') +
+ '_exclude.txt')
try:
f = codecs.open(filename, 'r', encoding=mysite.encoding())
for line in f.readlines():
--
To view, visit
https://gerrit.wikimedia.org/r/365449
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If030c2db5e41a3786ec7c87fada1906cc03599a6
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot <>