Commit 052e7b44 authored by Jason R. Coombs's avatar Jason R. Coombs

execfile now opens target in binary mode for better compatibility. Fixes Distribute #349.

parent a7cac0e3
...@@ -2,6 +2,13 @@ ...@@ -2,6 +2,13 @@
CHANGES 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 1.1.5
----- -----
......
...@@ -84,7 +84,7 @@ else: ...@@ -84,7 +84,7 @@ else:
globs = globals() globs = globals()
if locs is None: if locs is None:
locs = globs locs = globs
f = open(fn) f = open(fn, 'rb')
try: try:
source = f.read() source = f.read()
finally: finally:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment