Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2008-10-11 13:38:17 +0400
committerYann Leboulanger <asterix@lagaule.org>2008-10-11 13:38:17 +0400
commitba12a63d558db3986ab5aa69ab3eeec22bcff3fa (patch)
tree8c2388d6d641d3b21860b5e95c1515b1e3fccab2 /setup_osx.py
parent567f1e17c1f5273c7e8a052351d57327df100edb (diff)
[thorstenp] replace file with open
Diffstat (limited to 'setup_osx.py')
-rw-r--r--setup_osx.py6
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)):