[Python-checkins] r83525 - python/branches/py3k/Lib/trace.py

georg.brandl python-checkins at python.org
Mon Aug 2 14:36:25 CEST 2010


Author: georg.brandl
Date: Mon Aug  2 14:36:24 2010
New Revision: 83525

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

Modified:
   python/branches/py3k/Lib/trace.py

Modified: python/branches/py3k/Lib/trace.py
==============================================================================
--- python/branches/py3k/Lib/trace.py	(original)
+++ python/branches/py3k/Lib/trace.py	Mon Aug  2 14:36:24 2010
@@ -493,8 +493,8 @@
         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 @@
         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:


More information about the Python-checkins mailing list