diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-03-16 06:26:47 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-03-16 06:26:47 -0400 |
commit | d68b390410c2f3ee0d3e47c95fe556cd29cb3c78 (patch) | |
tree | 7fbc1baf87c8f8f1b26b154a9b3e55643d6a8f39 /setup.py | |
parent | 97724357315e4ec8068cc2c80a450cd19766f875 (diff) | |
download | external_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-x | setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |