[Libreoffice-commits] .: Branch 'libreoffice-4-0' - bin/convwatch.py
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Dec 20 11:04:54 PST 2012
bin/convwatch.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 8289c2c9c71fa3e931f4f3ce684064d7d6d38be6
Author: Michael Stahl <mstahl at redhat.com>
Date: Thu Dec 20 19:59:50 2012 +0100
convwatch.py: make it run on Python 3
Change-Id: Iaf0303f5268233ff34a4d4a31d1955fc6f58e7e2
(cherry picked from commit f8d7ddc805d4f1c013d4eab354bb2d86dcb2dda7)
diff --git a/bin/convwatch.py b/bin/convwatch.py
index e0fb05d..f3fa55a 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):
More information about the Libreoffice-commits
mailing list