aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/bdist_egg.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-09-12 23:22:28 +0200
committerMartin v. Löwis <martin@v.loewis.de>2009-09-12 23:22:28 +0200
commit709275f058fc9062b7a10db5123bd1ef91500832 (patch)
tree110a5bc7e0eec2441b6991adc671d512debb2b59 /setuptools/command/bdist_egg.py
parentee89ffb19c6fa2aab91d95d1866e3c08866bc842 (diff)
downloadexternal_python_setuptools-709275f058fc9062b7a10db5123bd1ef91500832.tar.gz
external_python_setuptools-709275f058fc9062b7a10db5123bd1ef91500832.tar.bz2
external_python_setuptools-709275f058fc9062b7a10db5123bd1ef91500832.zip
Open zipsafe file in text mode.
--HG-- branch : distribute extra : rebase_source : 3215e6d146816dc96a2cb23b6a6fb16fd63e1648
Diffstat (limited to 'setuptools/command/bdist_egg.py')
-rw-r--r--setuptools/command/bdist_egg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py
index 32cebe9d..43589c23 100644
--- a/setuptools/command/bdist_egg.py
+++ b/setuptools/command/bdist_egg.py
@@ -401,7 +401,7 @@ def write_safety_flag(egg_dir, safe):
if safe is None or bool(safe)<>flag:
os.unlink(fn)
elif safe is not None and bool(safe)==flag:
- f=open(fn,'wb'); f.write('\n'); f.close()
+ f=open(fn,'wt'); f.write('\n'); f.close()
safety_flags = {
True: 'zip-safe',