tree: fix pylint warnings

This fixes pylint warnings on our modules that are currently not part of
CI-pylint. The fixes should all be straightforward.

Signed-off-by: David Rheinsberg <david.rheinsberg@gmail.com>
This commit is contained in:
David Rheinsberg 2022-09-13 12:28:27 +02:00 committed by Simon de Vlieger
parent cdd65d4fd9
commit 8c367dfa6f
6 changed files with 12 additions and 11 deletions

View file

@ -133,7 +133,7 @@ class OSTreeInput(inputs.InputService):
if origin == "org.osbuild.pipeline":
for ref, options in refs.items():
source = store.read_tree(ref)
with open(os.path.join(source, "compose.json"), "r") as f:
with open(os.path.join(source, "compose.json"), "r", encoding="utf8") as f:
compose = json.load(f)
commit_id = compose["ostree-commit"]
reply = export({commit_id: options}, source, target)