aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)