summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-09-18 10:10:08 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-09-18 10:10:08 -0400
commit052e7b4453d950d11025107e9c98fa0be744d72f (patch)
treebd851fd9590e1be16bb99414751d500f4374cd03
parenta7cac0e348ab9be0d56a390e87ea2ab74c69a12a (diff)
downloadpython-setuptools-git-1.1.6.tar.gz
execfile now opens target in binary mode for better compatibility. Fixes Distribute #349.1.1.6
-rw-r--r--CHANGES.txt7
-rw-r--r--setuptools/compat.py2
2 files changed, 8 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index de8285a2..1b91a2c2 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -3,6 +3,13 @@ CHANGES
=======
-----
+1.1.6
+-----
+
+* Distribute #349: ``sandbox.execfile`` now opens the target file in binary
+ mode, thus honoring a BOM in the file when compiled.
+
+-----
1.1.5
-----
diff --git a/setuptools/compat.py b/setuptools/compat.py
index 860c39f3..529a5fbc 100644
--- a/setuptools/compat.py
+++ b/setuptools/compat.py
@@ -84,7 +84,7 @@ else:
globs = globals()
if locs is None:
locs = globs
- f = open(fn)
+ f = open(fn, 'rb')
try:
source = f.read()
finally: