Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e61426ef
Commit
e61426ef
authored
Jan 30, 2009
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The trace module was trying to turn ints into ints since co_lnotab was changed
to a bytes object.
parent
f254a751
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Lib/trace.py
Lib/trace.py
+1
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/trace.py
View file @
e61426ef
...
...
@@ -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
...
...
Misc/NEWS
View file @
e61426ef
...
...
@@ -147,6 +147,9 @@ Core and Builtins
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
inside its source path if it began with the same letters (e.g. "src" vs.
"src.new").
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment