[Libreoffice-commits] core.git: scripting/source

Rene Engelhard rene at debian.org
Wed Aug 21 01:12:16 PDT 2013


 scripting/source/pyprov/pythonscript.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 83f4be4740892e497d30f660abb55e40c628158e
Author: Rene Engelhard <rene at debian.org>
Date:   Wed Aug 21 10:11:14 2013 +0200

    deb#719941: pythonscript.py: use open() instead of file()
    
    Change-Id: Ib9f06b2b5629d149e932fe37312fdf5e8448c39f

diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py
index c9cafc9..6732e25 100755
--- a/scripting/source/pyprov/pythonscript.py
+++ b/scripting/source/pyprov/pythonscript.py
@@ -78,7 +78,7 @@ def getLogTarget():
             userInstallation =  pathSubst.getSubstituteVariableValue( "user" )
             if len( userInstallation ) > 0:
                 systemPath = uno.fileUrlToSystemPath( userInstallation + "/Scripts/python/log.txt" )
-                ret = file( systemPath , "a" )
+                ret = open( systemPath , "a" )
         except:
             print("Exception during creation of pythonscript logfile: "+ lastException2String() + "\n, delagating log to stdout\n")
     return ret


More information about the Libreoffice-commits mailing list