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
3f8ecab5
Commit
3f8ecab5
authored
Jul 21, 2010
by
Alexander Belopolsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #9323: Fixed a bug in trace.py that resulted in loosing the name
of the script being traced. Patch by Eli Bendersky.
parent
8cb6dbf1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
Lib/trace.py
Lib/trace.py
+3
-6
Misc/NEWS
Misc/NEWS
+3
-0
Misc/maintainers.rst
Misc/maintainers.rst
+1
-1
No files found.
Lib/trace.py
View file @
3f8ecab5
...
...
@@ -797,12 +797,9 @@ def main(argv=None):
ignoredirs
=
ignore_dirs
,
infile
=
counts_file
,
outfile
=
counts_file
,
timing
=
timing
)
try
:
fp
=
open
(
progname
)
try
:
script
=
fp
.
read
()
finally
:
fp
.
close
()
t
.
run
(
'exec(%r)'
%
(
script
,))
with
open
(
progname
)
as
fp
:
code
=
compile
(
fp
.
read
(),
progname
,
'exec'
)
t
.
run
(
code
)
except
IOError
as
err
:
_err_exit
(
"Cannot run file %r because: %s"
%
(
sys
.
argv
[
0
],
err
))
except
SystemExit
:
...
...
Misc/NEWS
View file @
3f8ecab5
...
...
@@ -473,6 +473,9 @@ C-API
Library
-------
- Issue #9323: Fixed a bug in trace.py that resulted in loosing the
name of the script being traced. Patch by Eli Bendersky.
- Issue #9282: Fixed --listfuncs option of trace.py. Thanks Eli
Bendersky for the patch.
...
...
Misc/maintainers.rst
View file @
3f8ecab5
...
...
@@ -212,7 +212,7 @@ timeit
tkinter gpolo
token georg.brandl
tokenize
trace
trace
alexander.belopolsky
traceback georg.brandl
tty
turtle gregorlingl
...
...
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