aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-03-16 06:26:47 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-03-16 06:26:47 -0400
commitd68b390410c2f3ee0d3e47c95fe556cd29cb3c78 (patch)
tree7fbc1baf87c8f8f1b26b154a9b3e55643d6a8f39 /setup.py
parent97724357315e4ec8068cc2c80a450cd19766f875 (diff)
downloadexternal_python_setuptools-d68b390410c2f3ee0d3e47c95fe556cd29cb3c78.tar.gz
external_python_setuptools-d68b390410c2f3ee0d3e47c95fe556cd29cb3c78.tar.bz2
external_python_setuptools-d68b390410c2f3ee0d3e47c95fe556cd29cb3c78.zip
Use binary mode to save/restore entry_points - no need to mutate newlines
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 13736be5..19a1dfb7 100755
--- a/setup.py
+++ b/setup.py
@@ -70,7 +70,7 @@ class test(_test):
return # even though _test.run will raise SystemExit
# save the content
- with open(entry_points) as f:
+ with open(entry_points, 'rb') as f:
ep_content = f.read()
# run the test
@@ -78,7 +78,7 @@ class test(_test):
_test.run(self)
finally:
# restore the file
- with open(entry_points, 'w') as f:
+ with open(entry_points, 'wb') as f:
f.write(ep_content)