From: Georg Brandl Date: Mon, 2 Aug 2010 12:36:24 +0000 (+0000) Subject: Get rid of spurious "threading" entries in trace output. X-Git-Tag: v3.2a2~544 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24085d794071dcb9e5de294d246f28cf6f3a6dc9;p=python Get rid of spurious "threading" entries in trace output. --- 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: