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 | 3295ecaed0676556416fe76dfb60ad2348e78cc4 (patch) | |
tree | 07f316f158af71ff9262cb2d709ed2ec1413d6fa /setup.py | |
parent | 9277828ec3d0d5c899491f29ac30bb6b3595ba65 (diff) | |
download | python-setuptools-bitbucket-3295ecaed0676556416fe76dfb60ad2348e78cc4.tar.gz |
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) |