Kaydet (Commit) d256f08c authored tarafından Michael Stahl's avatar Michael Stahl

convwatch.py: decode bytes before printing

Change-Id: Ic1b115583415ab9bd2bdb18fa55f61803efc8442
üst 8ac24de1
...@@ -327,7 +327,7 @@ def identify(imagefile): ...@@ -327,7 +327,7 @@ def identify(imagefile):
if process.wait() != 0: if process.wait() != 0:
raise Exception("identify failed") raise Exception("identify failed")
if result.partition(b"\n")[0] != b"1": if result.partition(b"\n")[0] != b"1":
print("identify result: " + result) print("identify result: " + result.decode('utf-8'))
print("DIFFERENCE in " + imagefile) print("DIFFERENCE in " + imagefile)
def compose(refimagefile, imagefile, diffimagefile): def compose(refimagefile, imagefile, diffimagefile):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment