diff options
author | Patrick Griffis <pgriffis@igalia.com> | 2021-09-13 10:27:46 -0500 |
---|---|---|
committer | Patrick Griffis <pgriffis@igalia.com> | 2021-09-13 10:28:09 -0500 |
commit | ca5f8587efa11f69d976185d13b12d0f39e171a6 (patch) | |
tree | 94f492bd3e0248890a1e95c26d40a3f7183ce05f | |
parent | 69e6f2e054e2abd5672574ed98bbdc9b071e633b (diff) | |
download | libgweather-ca5f8587efa11f69d976185d13b12d0f39e171a6.tar.gz |
Fix style warning for python script
-rwxr-xr-x | data/gen_locations_variant.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/data/gen_locations_variant.py b/data/gen_locations_variant.py index c314f34..e256502 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) |