]> granicus.if.org Git - python/commitdiff
Merged revisions 83525 via svnmerge from
authorGeorg Brandl <georg@python.org>
Mon, 2 Aug 2010 21:38:08 +0000 (21:38 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 2 Aug 2010 21:38:08 +0000 (21:38 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83525 | georg.brandl | 2010-08-02 14:36:24 +0200 (Mo, 02 Aug 2010) | 1 line

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

Lib/trace.py

index 5f124d92ad591e26e7ec6391329d4169bf1a1fa2..43a5d33561c211a91653b4a55d7792b8b0280ce8 100644 (file)
@@ -494,8 +494,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 in dict, dict
         finally:
@@ -507,8 +507,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 in globals, locals
         finally: