Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.

Commit

Permalink
BUG: Read source files as bytes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkern committed Nov 4, 2015
1 parent 0e2b350 commit 0aff122
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@ Bugs and pull requested can be submitted on GitHub_.
Changes
=======

1.1
~~~
* BUG: Read source files as bytes.

1.0
~~~
* ENH: `kernprof.py` is now installed as `kernprof`.
Expand Down
2 changes: 1 addition & 1 deletion kernprof.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
exec_ = getattr(builtins, "exec")

def execfile(filename, globals=None, locals=None):
with open(filename) as f:
with open(filename, 'rb') as f:
exec_(compile(f.read(), filename, 'exec'), globals, locals)
# =====================================

Expand Down

0 comments on commit 0aff122

Please sign in to comment.