]> granicus.if.org Git - python/commitdiff
Get rid of spurious "threading" entries in trace output.
authorGeorg Brandl <georg@python.org>
Mon, 2 Aug 2010 12:36:24 +0000 (12:36 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 2 Aug 2010 12:36:24 +0000 (12:36 +0000)
Lib/trace.py

index 493c4e83df0217489c25609920d9f7086e06b66c..1a4b0dbc349a1b8131bc914ebad872d4dddf73de 100644 (file)
@@ -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: