mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
The trace module was trying to turn ints into ints since co_lnotab was changed
to a bytes object.
This commit is contained in:
parent
f254a75176
commit
e61426efbf
2 changed files with 4 additions and 1 deletions
|
@ -367,7 +367,7 @@ def find_lines_from_code(code, strs):
|
|||
"""Return dict where keys are lines in the line number table."""
|
||||
linenos = {}
|
||||
|
||||
line_increments = [ord(c) for c in code.co_lnotab[1::2]]
|
||||
line_increments = code.co_lnotab[1::2]
|
||||
table_length = len(line_increments)
|
||||
docstring = False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue