summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-12-20 19:59:50 +0100
committerMichael Stahl <mstahl@redhat.com>2012-12-20 20:00:36 +0100
commitf8d7ddc805d4f1c013d4eab354bb2d86dcb2dda7 (patch)
tree33b467266da7fbddffc680d7579f398b3298a85c /bin
parentb8be6d8a6854f69ce098c59ba399f8c7f37474fb (diff)
convwatch.py: make it run on Python 3
Change-Id: Iaf0303f5268233ff34a4d4a31d1955fc6f58e7e2
Diffstat (limited to 'bin')
-rwxr-xr-xbin/convwatch.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/convwatch.py b/bin/convwatch.py
index e0fb05d4c8e2..f3fa55ad8cf9 100755
--- a/bin/convwatch.py
+++ b/bin/convwatch.py
@@ -340,7 +340,7 @@ def identify(imagefile):
result, _ = process.communicate()
if process.wait() != 0:
raise Exception("identify failed")
- if result.partition("\n")[0] != "1":
+ if result.partition(b"\n")[0] != b"1":
print("identify result: " + result)
print("DIFFERENCE in " + imagefile)
@@ -365,13 +365,13 @@ def compareImages(file):
print("DIFFERENT NUMBER OF IMAGES FOR: " + file)
def compareAllImages(dirs, suffix):
- print "compareAllImages..."
+ print("compareAllImages...")
for dir in dirs:
files = filelist(dir, suffix)
# print("compareAllImages:" + str(files))
for f in files:
compareImages(f)
- print "...compareAllImages done"
+ print("...compareAllImages done")
def parseArgs(argv):