diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2008-10-11 13:38:17 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2008-10-11 13:38:17 +0400 |
commit | ba12a63d558db3986ab5aa69ab3eeec22bcff3fa (patch) | |
tree | 8c2388d6d641d3b21860b5e95c1515b1e3fccab2 /setup_osx.py | |
parent | 567f1e17c1f5273c7e8a052351d57327df100edb (diff) |
[thorstenp] replace file with open
Diffstat (limited to 'setup_osx.py')
-rw-r--r-- | setup_osx.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setup_osx.py b/setup_osx.py index aa2bf30f1..b30853079 100644 --- a/setup_osx.py +++ b/setup_osx.py @@ -88,7 +88,7 @@ def force(func): def writeScript(filename, contents): - script = file(filename, "w+") + script = open(filename, "w+") script.write(contents) script.close() system("chmod +x %s" % filename) @@ -148,8 +148,8 @@ def setupPrep(): copy("src/osx/prep_py2app.py", APP_RS) move("dist/Gajim.app/Contents/Resources/__boot__.py", "dist/Gajim.app/Contents/Resources/__boot__.py.org") - new = file("dist/Gajim.app/Contents/Resources/__boot__.py", "w+") - org = file("dist/Gajim.app/Contents/Resources/__boot__.py.org") + new = open("dist/Gajim.app/Contents/Resources/__boot__.py", "w+") + org = open("dist/Gajim.app/Contents/Resources/__boot__.py.org") for line in org: new.write(line) if (('site.addsitedir' in line) and ('Python' in line)): |