Merlijn van Deen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/232786
Change subject: tools: cdnjs-packages-gen: explicitly specify file encoding
......................................................................
tools: cdnjs-packages-gen: explicitly specify file encoding
Change-Id: Iea1c6fdc075e4ee786ac2894f44473921536cc32
---
M modules/toollabs/files/cdnjs-packages-gen
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/86/232786/1
diff --git a/modules/toollabs/files/cdnjs-packages-gen
b/modules/toollabs/files/cdnjs-packages-gen
index 0237d8b..a8c4fd5 100644
--- a/modules/toollabs/files/cdnjs-packages-gen
+++ b/modules/toollabs/files/cdnjs-packages-gen
@@ -20,8 +20,8 @@
packages = []
for file in files:
- with open(file) as f:
+ with open(file, encoding='utf-8') as f:
packages.append(json.load(f))
-with open(args.outputpath, 'w') as f:
+with open(args.outputpath, 'w', encoding='utf-8') as f:
json.dump(packages, f)
--
To view, visit https://gerrit.wikimedia.org/r/232786
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iea1c6fdc075e4ee786ac2894f44473921536cc32
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Merlijn van Deen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits