[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



On Tue, Aug 20, 2013 at 10:27 AM, Rene Engelhard <rene@debian.org> wrote:
>> --- /usr/lib/libreoffice/program/pythonscript.py~    2013-08-16
>> 18:51:06.865451812 -0500
>> +++ /usr/lib/libreoffice/program/pythonscript.py    2013-08-06
>> 12:25:04.000000000 -0500
>>  #-------------------------------------------------------------------
>> @@ -70,7 +70,7 @@
>>              userInstallation =  pathSubst.getSubstituteVariableValue( "user" )
>>              if len( userInstallation ) > 0:
>>                  systemPath = uno.fileUrlToSystemPath(
>> userInstallation + "/Scripts/python/log.txt" )
>> -                ret = open( systemPath , "a" )
>> +                ret = file( systemPath , "a" )
>
> So why is this needed?
http://docs.python.org/release/3.0/whatsnew/3.0.html#builtins file is
removed, you must used open



-- 
James Michael DuPont
Member of Free Libre Open Source Software Kosova http://flossk.org
Saving wikipedia(tm) articles from deletion http://SpeedyDeletion.wikia.com
Contributor FOSM, the CC-BY-SA map of the world http://fosm.org
Mozilla Rep https://reps.mozilla.org/u/h4ck3rm1k3
Free Software Foundation Europe Fellow http://fsfe.org/support/?h4ck3rm1k3


Reply to: