summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorRene Engelhard <rene@debian.org>2013-08-21 10:11:14 +0200
committerRene Engelhard <rene@debian.org>2013-08-21 10:11:14 +0200
commit83f4be4740892e497d30f660abb55e40c628158e (patch)
tree2c1543faff16eebf29136bddaddeacbde0c8e255 /scripting
parent03a2bb6cd8ec6b492705cd31e5ee41f683d793c2 (diff)
deb#719941: pythonscript.py: use open() instead of file()
Change-Id: Ib9f06b2b5629d149e932fe37312fdf5e8448c39f
Diffstat (limited to 'scripting')
-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 c9cafc9342d6..6732e256fead 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