summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRene Engelhard <rene@debian.org>2013-08-21 10:11:14 +0200
committerRene Engelhard <rene@debian.org>2013-08-22 00:09:45 +0200
commit55638b9f72beeebde6887d620ce1513bbda7e506 (patch)
treec216db4698bd7de4af798e1530ae262d6be9448e
parent64f291c6d1f5ce9a1e5f7d0b8d2351e363c60d5c (diff)
deb#719941: pythonscript.py: use open() instead of file()
Change-Id: Ib9f06b2b5629d149e932fe37312fdf5e8448c39f Signed-off-by: Michael Stahl <mstahl@redhat.com>
-rwxr-xr-xscripting/source/pyprov/pythonscript.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py
index 3ddcec69b1ed..4d8b6bae6220 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