osbuild: explicit encodings for open()

Provides explicit encodings for all calls to `open()`, this is a newer
pylint warning but also just makes sense to do.
This commit is contained in:
Simon de Vlieger 2022-09-09 11:19:07 +02:00
parent 42552e0436
commit 3703328751
8 changed files with 22 additions and 22 deletions

View file

@ -27,7 +27,7 @@ def parse_manifest(path):
if path == "-":
manifest = json.load(sys.stdin)
else:
with open(path) as f:
with open(path, encoding="utf8") as f:
manifest = json.load(f)
return manifest