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?= <beauze.h@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
Context
- [Libreoffice] [Patch] Porting js2hxx.py to python3 · Hugo Beauzée-Luyssen
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.