[libgweather/pgriffis/fix-python-sytle-warning] Fix style warning for python script
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/pgriffis/fix-python-sytle-warning] Fix style warning for python script
- Date: Mon, 13 Sep 2021 15:28:23 +0000 (UTC)
commit ca5f8587efa11f69d976185d13b12d0f39e171a6
Author: Patrick Griffis <pgriffis igalia com>
Date: Mon Sep 13 10:27:46 2021 -0500
Fix style warning for python script
data/gen_locations_variant.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/data/gen_locations_variant.py b/data/gen_locations_variant.py
index c314f348..e2565029 100755
--- a/data/gen_locations_variant.py
+++ b/data/gen_locations_variant.py
@@ -211,4 +211,5 @@ if struct.pack('h', 0x01)[0]:
pass
data = res.get_data_as_bytes().get_data()
-open(sys.argv[2], 'bw').write(data)
+with open(sys.argv[2], 'bw') as f:
+ f.write(data)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]