Hi,

This is a simple patch to allow using python 3 when building.
I'm new to this list, and to submitting patches for libreoffice, so if
I did anything wrong, feel free to correct me :)

Regards,

-- 
Hugo Beauzée-Luyssen
From ecc20336a6a5a0e428551805071cccf9e9d17158 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= <beauz...@gmail.com>
Date: Wed, 28 Sep 2011 16:53:06 +0200
Subject: [PATCH] filters: Updating js2hxx.py to python3

---
 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 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 )
 
 
-- 
1.7.6.4

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to