Yuvipanda has submitted this change and it was merged.

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(-)

Approvals:
  Yuvipanda: Verified; Looks good to me, approved



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: merged
Gerrit-Change-Id: Iea1c6fdc075e4ee786ac2894f44473921536cc32
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to