Skip to content

Commit cd904a3

Browse files
committed
it should be a binary, b"pypy" != "pypy"
1 parent d4c10d3 commit cd904a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vmprof/reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def read_header(self):
163163

164164
lgt = ord(fileobj.read(1))
165165
s.interp_name = fileobj.read(lgt)
166-
if s.interp_name == 'pypy':
166+
if s.interp_name == b'pypy':
167167
s.profile_rpython = True
168168
if PY3:
169169
s.interp_name = s.interp_name.decode()

0 commit comments

Comments
 (0)