diff options
author | Hugo Beauzée-Luyssen <beauze.h@gmail.com> | 2011-09-28 16:53:06 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-09-29 07:09:15 +0200 |
commit | 3be0deb066fec282bf3598f963c913f14ccf6ee5 (patch) | |
tree | 19a949c3e9f879a052e7a90f1906a359dfabf5c1 /filter | |
parent | next test -> unotest change (diff) | |
download | core-3be0deb066fec282bf3598f963c913f14ccf6ee5.tar.gz core-3be0deb066fec282bf3598f963c913f14ccf6ee5.zip |
filters: Updating js2hxx.py to python3
Diffstat (limited to 'filter')
-rwxr-xr-x | filter/source/svg/js2hxx.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/source/svg/js2hxx.py b/filter/source/svg/js2hxx.py index 0967dd60228f..8ea1dfdd213d 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 ) |