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:
parent
42552e0436
commit
3703328751
8 changed files with 22 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue