Bug#719941: libreoffice-script-provider-python: python 3 porting issues

2013-08-21 Thread Rene Engelhard
tag 719941 + pending thanks Hi, On Wed, Aug 21, 2013 at 01:41:51AM -0500, Mike Dupont wrote: > resending because the mail system was confused : > > On Tue, Aug 20, 2013 at 10:27 AM, Rene Engelhard wrote: > > -ret = open( systemPath , "a" ) > > +ret = file( systemP

Bug#719941: libreoffice-script-provider-python: python 3 porting issues

2013-08-20 Thread Mike Dupont
resending because the mail system was confused : > On Tue, Aug 20, 2013 at 10:27 AM, Rene Engelhard wrote: > -ret = open( systemPath , "a" ) > +ret = file( systemPath , "a" ) > > So why is this needed? see http://docs.python.org/release/3.0/whatsnew/3.0.html#builtin

Bug#719941: libreoffice-script-provider-python: python 3 porting issues

2013-08-20 Thread Mike Dupont
On Tue, Aug 20, 2013 at 10:27 AM, Rene Engelhard wrote: >> --- /usr/lib/libreoffice/program/pythonscript.py~2013-08-16 >> 18:51:06.865451812 -0500 >> +++ /usr/lib/libreoffice/program/pythonscript.py2013-08-06 >> 12:25:04.0 -0500 >> #

Bug#719941: libreoffice-script-provider-python: python 3 porting issues

2013-08-20 Thread Rene Engelhard
tag 719941 + upstream forwarded 719941 Michael Stahl retitle 719941 libreoffice-script-provider-python: python 3 porting fixes for debug logging tag 719941 + moreinfo thanks Hi, On Fri, Aug 16, 2013 at 07:21:50PM -0500, Mike Dupont wrote: > here are some patches for python 3 porting. I forward

Bug#719941: libreoffice-script-provider-python: python 3 porting issues

2013-08-17 Thread Rene Engelhard
Hi, On Sat, Aug 17, 2013 at 10:54:23AM -0500, Mike Dupont wrote: > Ok, great, so basically we will need to do an if statement and support > both. What exact version are we using here and what should I patch > against? For 2.x it doesn't matter that much, but upstreams baseline is >= 2.6 iirc For

Bug#719941: libreoffice-script-provider-python: python 3 porting issues

2013-08-17 Thread Mike Dupont
Ok, great, so basically we will need to do an if statement and support both. What exact version are we using here and what should I patch against? >>> import sys >>> PY3 = sys.version > '3' http://python3porting.com/problems.html mike On Sat, Aug 17, 2013 at 7:30 AM, Rene Engelhard wrote: > Hi

Bug#719941: libreoffice-script-provider-python: python 3 porting issues

2013-08-17 Thread Rene Engelhard
Hi, On Sat, Aug 17, 2013 at 06:12:58AM -0500, Mike Dupont wrote: > encfile(msg).decode() does not work with py2.7, encfile returns bytes > not a string which needs to be decoded > http://docs.python.org/3.0/whatsnew/3.0.html > > as far as I know the latest version of libreoffice does not support

Bug#719941: libreoffice-script-provider-python: python 3 porting issues

2013-08-17 Thread Mike Dupont
encfile(msg).decode() does not work with py2.7, encfile returns bytes not a string which needs to be decoded http://docs.python.org/3.0/whatsnew/3.0.html as far as I know the latest version of libreoffice does not support 2.7 , but someone said you can compile with it, anyway this is a vanilla bui

Bug#719941: libreoffice-script-provider-python: python 3 porting issues

2013-08-17 Thread Rene Engelhard
On Fri, Aug 16, 2013 at 07:21:50PM -0500, Mike Dupont wrote: > --- /usr/lib/libreoffice/program/pythonscript.py~2013-08-16 > 18:51:06.865451812 -0500 > +++ /usr/lib/libreoffice/program/pythonscript.py2013-08-06 > 12:25:04.0 -0500 > #-

Bug#719941: libreoffice-script-provider-python: python 3 porting issues

2013-08-16 Thread Mike Dupont
Package: libreoffice-script-provider-python Version: 1:4.1.1~rc1-1 Severity: minor Dear Maintainer, here are some patches for python 3 porting. --- /usr/lib/libreoffice/program/pythonscript.py~2013-08-16 18:51:06.865451812 -0500 +++ /usr/lib/libreoffice/program/pythonscript.py2013-08-06 1