From 8994d89266d7e16230865ad594b7e9a5234b4d48 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 23 Nov 2017 08:16:10 +0100 Subject: [PATCH] Use python3 print syntax (cherry picked from commit 4f10c0a14b8ac455be4bc430dec07f033b7282ac) --- lib/scripts/svg2pdftex.py | 2 +- lib/scripts/svg2pstex.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/scripts/svg2pdftex.py b/lib/scripts/svg2pdftex.py index dc79b43273..941a58776f 100644 --- a/lib/scripts/svg2pdftex.py +++ b/lib/scripts/svg2pdftex.py @@ -35,7 +35,7 @@ def runCommand(cmd): ''' res = subprocess.check_call(cmd) if res != 0: - print ("Command '%s' fails (exit code: %i)." % (res.cmd, res.returncode)) + print("Command '%s' fails (exit code: %i)." % (res.cmd, res.returncode)) sys.exit(1) InkscapeCmd = "inkscape" diff --git a/lib/scripts/svg2pstex.py b/lib/scripts/svg2pstex.py index 0195e26d2f..80f282ec26 100644 --- a/lib/scripts/svg2pstex.py +++ b/lib/scripts/svg2pstex.py @@ -38,7 +38,7 @@ def runCommand(cmd): ''' res = subprocess.check_call(cmd) if res != 0: - print "Command '%s' fails (exit code: %i)." % (res.cmd, res.returncode) + print("Command '%s' fails (exit code: %i)." % (res.cmd, res.returncode)) sys.exit(1) InkscapeCmd = "inkscape" -- 2.39.5