summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-08-02 12:36:24 (GMT)
committerGeorg Brandl <georg@python.org>2010-08-02 12:36:24 (GMT)
commit24085d794071dcb9e5de294d246f28cf6f3a6dc9 (patch)
tree73946db860f2046256976f6da579f7c52bfdba38
parent8e43fbfffa38b36e907bb847f5d09b3a9bc1bcb4 (diff)
downloadcpython-24085d794071dcb9e5de294d246f28cf6f3a6dc9.zip
cpython-24085d794071dcb9e5de294d246f28cf6f3a6dc9.tar.gz
cpython-24085d794071dcb9e5de294d246f28cf6f3a6dc9.tar.bz2
Get rid of spurious "threading" entries in trace output.
-rw-r--r--Lib/trace.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/trace.py b/Lib/trace.py
index 493c4e8..1a4b0db 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: