summaryrefslogtreecommitdiff
path: root/Lib/trace.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-01-30 01:31:34 +0000
committerBrett Cannon <bcannon@gmail.com>2009-01-30 01:31:34 +0000
commite61426efbf3a41d2beb4e0f95f363aaaa7df0db6 (patch)
treead670d8b239fdca5aa99b8c50baf267af018cb25 /Lib/trace.py
parentf254a75176928e1d1228a5d20d49fbe2fe9f290a (diff)
downloadcpython-git-e61426efbf3a41d2beb4e0f95f363aaaa7df0db6.tar.gz
The trace module was trying to turn ints into ints since co_lnotab was changed
to a bytes object.
Diffstat (limited to 'Lib/trace.py')
-rw-r--r--Lib/trace.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/trace.py b/Lib/trace.py
index a5c2f1104b..a272683d95 100644
--- a/Lib/trace.py
+++ b/Lib/trace.py
@@ -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