Commit 709275f0 authored by Martin v. Löwis's avatar Martin v. Löwis

Open zipsafe file in text mode.

--HG--
branch : distribute
extra : rebase_source : 3215e6d146816dc96a2cb23b6a6fb16fd63e1648
parent ee89ffb1
...@@ -401,7 +401,7 @@ def write_safety_flag(egg_dir, safe): ...@@ -401,7 +401,7 @@ def write_safety_flag(egg_dir, safe):
if safe is None or bool(safe)<>flag: if safe is None or bool(safe)<>flag:
os.unlink(fn) os.unlink(fn)
elif safe is not None and bool(safe)==flag: 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 = { safety_flags = {
True: 'zip-safe', True: 'zip-safe',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment