Skip to content

Commit

Permalink
it should be a binary, b"pypy" != "pypy"
Browse files Browse the repository at this point in the history
  • Loading branch information
planrich committed Mar 24, 2017
1 parent d4c10d3 commit cd904a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmprof/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def read_header(self):

lgt = ord(fileobj.read(1))
s.interp_name = fileobj.read(lgt)
if s.interp_name == 'pypy':
if s.interp_name == b'pypy':
s.profile_rpython = True
if PY3:
s.interp_name = s.interp_name.decode()
Expand Down

0 comments on commit cd904a3

Please sign in to comment.