Commits

Jason R. Coombs committed 5e426bd

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

Comments (0)

Files changed (2)

 =======
 
 -----
+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
 -----
 

setuptools/compat.py

             globs = globals()
         if locs is None:
             locs = globs
-        f = open(fn)
+        f = open(fn, 'rb')
         try:
             source = f.read()
         finally: