[Libreoffice-commits] .: filter/source
David Tardon
dtardon at kemper.freedesktop.org
Wed Sep 28 22:14:20 PDT 2011
filter/source/svg/js2hxx.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 3be0deb066fec282bf3598f963c913f14ccf6ee5
Author: Hugo Beauzée-Luyssen <beauze.h at gmail.com>
Date: Wed Sep 28 16:53:06 2011 +0200
filters: Updating js2hxx.py to python3
diff --git a/filter/source/svg/js2hxx.py b/filter/source/svg/js2hxx.py
index 0967dd6..8ea1dfd 100755
--- a/filter/source/svg/js2hxx.py
+++ b/filter/source/svg/js2hxx.py
@@ -41,7 +41,7 @@ outfile_name = sys.argv[2]
# collect input JavaScript file lines
if( not os.path.isfile( infile_name ) ):
- print '%s: error: file "%s" not found' % ( script_name, infile_name )
+ print ( '%s: error: file "%s" not found' % ( script_name, infile_name ) )
sys.exit( -1 )
infile = open( infile_name, 'r' )
@@ -57,7 +57,7 @@ for line in in_lines:
lineNumber += 1
index = line.find('"')
if( index != -1 ):
- print '%s: warning: processed file contains \'"\' at %d:%d' % ( script_name, lineNumber, index )
+ print ( '%s: warning: processed file contains \'"\' at %d:%d' % ( script_name, lineNumber, index ) )
sline = line.strip()
@@ -134,7 +134,7 @@ out_lines.append( '' )
outfile = open( outfile_name, 'w' )
if( not os.path.isfile( outfile_name ) ):
- print '%s: error: I cannot create file "%s"' % ( script_name, outfile_name )
+ print ( '%s: error: I cannot create file "%s"' % ( script_name, outfile_name ) )
sys.exit( -1 )
More information about the Libreoffice-commits
mailing list