[sysadmin-bin] Open the file for writing



commit 56083287f631678ca0a54a745aae80ccea112a8c
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Fri Mar 12 12:33:34 2021 +0100

    Open the file for writing

 membership/foundation-operations.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/membership/foundation-operations.py b/membership/foundation-operations.py
index 799fcb5..c5d4642 100755
--- a/membership/foundation-operations.py
+++ b/membership/foundation-operations.py
@@ -128,7 +128,7 @@ def generate_membership_list():
         result["emeritus"].append(common_name_attr)
         result["emeritus"].sort(key=str.casefold)
 
-    with open("memberslist.json") as f:
+    with open("memberslist.json", "w") as f:
         json.dump(result, f)
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]