mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +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."""
|
"""Return dict where keys are lines in the line number table."""
|
||||||
linenos = {}
|
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)
|
table_length = len(line_increments)
|
||||||
docstring = False
|
docstring = False
|
||||||
|
|
||||||
|
|
|
@ -147,6 +147,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Fix a bug in the trace module where a bytes object from co_lnotab had its
|
||||||
|
items being passed through ord().
|
||||||
|
|
||||||
- Issue #2047: shutil.move() could believe that its destination path was
|
- Issue #2047: shutil.move() could believe that its destination path was
|
||||||
inside its source path if it began with the same letters (e.g. "src" vs.
|
inside its source path if it began with the same letters (e.g. "src" vs.
|
||||||
"src.new").
|
"src.new").
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue