mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Get rid of spurious "threading" entries in trace output.
This commit is contained in:
parent
8e43fbfffa
commit
24085d7940
1 changed files with 2 additions and 2 deletions
|
@ -493,8 +493,8 @@ class Trace:
|
|||
import __main__
|
||||
dict = __main__.__dict__
|
||||
if not self.donothing:
|
||||
sys.settrace(self.globaltrace)
|
||||
threading.settrace(self.globaltrace)
|
||||
sys.settrace(self.globaltrace)
|
||||
try:
|
||||
exec(cmd, dict, dict)
|
||||
finally:
|
||||
|
@ -506,8 +506,8 @@ class Trace:
|
|||
if globals is None: globals = {}
|
||||
if locals is None: locals = {}
|
||||
if not self.donothing:
|
||||
sys.settrace(self.globaltrace)
|
||||
threading.settrace(self.globaltrace)
|
||||
sys.settrace(self.globaltrace)
|
||||
try:
|
||||
exec(cmd, globals, locals)
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue