summaryrefslogtreecommitdiff
path: root/Lib/trace.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-08-02 12:36:24 +0000
committerGeorg Brandl <georg@python.org>2010-08-02 12:36:24 +0000
commitf5cf14efe2b95a4120ade66fe69dc25755b767ef (patch)
tree39543e29ba5a8010f0076669b67ab9cdb174aae3 /Lib/trace.py
parentecf3bf7f34eb3bba96f8b0506a25fc7da4e5fdf9 (diff)
downloadcpython-f5cf14efe2b95a4120ade66fe69dc25755b767ef.tar.gz
Get rid of spurious "threading" entries in trace output.
Diffstat (limited to 'Lib/trace.py')
-rw-r--r--Lib/trace.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/trace.py b/Lib/trace.py
index 493c4e83df..1a4b0dbc34 100644
--- a/Lib/trace.py
+++ b/Lib/trace.py
@@ -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: