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
101caafe
Commit
101caafe
authored
Aug 29, 2011
by
Nadeem Vawda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test failures when Python is compiled without thread support.
parent
bc0080a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
Lib/trace.py
Lib/trace.py
+1
-9
No files found.
Lib/trace.py
View file @
101caafe
...
@@ -502,15 +502,7 @@ class Trace:
...
@@ -502,15 +502,7 @@ class Trace:
def
run
(
self
,
cmd
):
def
run
(
self
,
cmd
):
import
__main__
import
__main__
dict
=
__main__
.
__dict__
dict
=
__main__
.
__dict__
if
not
self
.
donothing
:
self
.
runctx
(
cmd
,
dict
,
dict
)
threading
.
settrace
(
self
.
globaltrace
)
sys
.
settrace
(
self
.
globaltrace
)
try
:
exec
cmd
in
dict
,
dict
finally
:
if
not
self
.
donothing
:
sys
.
settrace
(
None
)
threading
.
settrace
(
None
)
def
runctx
(
self
,
cmd
,
globals
=
None
,
locals
=
None
):
def
runctx
(
self
,
cmd
,
globals
=
None
,
locals
=
None
):
if
globals
is
None
:
globals
=
{}
if
globals
is
None
:
globals
=
{}
...
...
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