From 5e06eb4c32c84079b6817e6d1da71bb84c5c367b Mon Sep 17 00:00:00 2001 From: Rene Engelhard Date: Wed, 21 Aug 2013 10:11:14 +0200 Subject: deb#719941: pythonscript.py: use open() instead of file() Change-Id: Ib9f06b2b5629d149e932fe37312fdf5e8448c39f Signed-off-by: Michael Stahl --- scripting/source/pyprov/pythonscript.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py index 27ac6bd8523d..b6b01232fa0f 100755 --- a/scripting/source/pyprov/pythonscript.py +++ b/scripting/source/pyprov/pythonscript.py @@ -70,7 +70,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 -- cgit v1.2.3