]> git.lyx.org Git - features.git/commitdiff
svg2pdftex.py: make print work with Python 2 and 3
authorUwe Stöhr <uwestoehr@lyx.org>
Wed, 22 Nov 2017 22:26:58 +0000 (23:26 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Wed, 22 Nov 2017 22:26:58 +0000 (23:26 +0100)
lib/scripts/svg2pdftex.py

index c574e6a1a45292c711fc373550ee4d73cb6bc875..dc79b4327346e1c1d8f3540867e6d818657e29c6 100644 (file)
@@ -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"