Commit f5cf14ef authored by Georg Brandl's avatar Georg Brandl

Get rid of spurious "threading" entries in trace output.

parent ecf3bf7f
...@@ -493,8 +493,8 @@ class Trace: ...@@ -493,8 +493,8 @@ class Trace:
import __main__ import __main__
dict = __main__.__dict__ dict = __main__.__dict__
if not self.donothing: if not self.donothing:
sys.settrace(self.globaltrace)
threading.settrace(self.globaltrace) threading.settrace(self.globaltrace)
sys.settrace(self.globaltrace)
try: try:
exec(cmd, dict, dict) exec(cmd, dict, dict)
finally: finally:
...@@ -506,8 +506,8 @@ class Trace: ...@@ -506,8 +506,8 @@ class Trace:
if globals is None: globals = {} if globals is None: globals = {}
if locals is None: locals = {} if locals is None: locals = {}
if not self.donothing: if not self.donothing:
sys.settrace(self.globaltrace)
threading.settrace(self.globaltrace) threading.settrace(self.globaltrace)
sys.settrace(self.globaltrace)
try: try:
exec(cmd, globals, locals) exec(cmd, globals, locals)
finally: finally:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment