incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 115780] filter: Python Script pyAltFCFGMerge updated to run under Python 3.1.2
Date Wed, 01 Aug 2012 11:24:06 GMT

--- Comment #6 from hanya <> ---
Created attachment 78802
To support both python2.7 and python3

This patch contains attached patch provided by 
"encoding" keyword argument of open() function can not be passed on Python 2.X. 
Default ascii codec of Python (3.X) does not allow multi-byte characters for
text mode. 
The patch contains version check of Python and conditions around open()
I tried to build with Python 2.7.3 and Python 3.3.0b1 using hacked makefile
like as follows.

# svn diff filter/source/config/fragments/ 
Index: filter/source/config/fragments/
--- filter/source/config/fragments/    (revision 1367534)
+++ filter/source/config/fragments/    (working copy)
@@ -183,7 +183,9 @@
+MERGE:=/usr/local/bin/python3.3 ../tools/merge/pyAltFCFGMerge
+#MERGE:=python ../tools/merge/pyAltFCFGMerge

 PACKLANG := $(XSLTPROC) --nonet

The format() method of string is introduced on Python 2.6, so this patch
requires version 2.6.

You are receiving this mail because:
You are on the CC list for the bug.

View raw message