test: explicit encodings for open()

This commit is contained in:
Simon de Vlieger 2022-09-09 11:40:27 +02:00
parent 3703328751
commit 38d2ab685c
14 changed files with 63 additions and 61 deletions

View file

@ -168,7 +168,7 @@ class Initrd:
encoding=None,
stdin=image,
stderr=subprocess.DEVNULL)
return output.strip().decode('utf-8')
return output.strip().decode('utf8')
def read_initrd(path):