mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Merged revisions 83525 via svnmerge from
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. ........
This commit is contained in:
parent
fb2c459ab2
commit
11ce4d98f2
1 changed files with 2 additions and 2 deletions
|
@ -494,8 +494,8 @@ class Trace:
|
||||||
import __main__
|
import __main__
|
||||||
dict = __main__.__dict__
|
dict = __main__.__dict__
|
||||||
if not self.donothing:
|
if not self.donothing:
|
||||||
sys.settrace(self.globaltrace)
|
|
||||||
threading.settrace(self.globaltrace)
|
threading.settrace(self.globaltrace)
|
||||||
|
sys.settrace(self.globaltrace)
|
||||||
try:
|
try:
|
||||||
exec cmd in dict, dict
|
exec cmd in dict, dict
|
||||||
finally:
|
finally:
|
||||||
|
@ -507,8 +507,8 @@ class Trace:
|
||||||
if globals is None: globals = {}
|
if globals is None: globals = {}
|
||||||
if locals is None: locals = {}
|
if locals is None: locals = {}
|
||||||
if not self.donothing:
|
if not self.donothing:
|
||||||
sys.settrace(self.globaltrace)
|
|
||||||
threading.settrace(self.globaltrace)
|
threading.settrace(self.globaltrace)
|
||||||
|
sys.settrace(self.globaltrace)
|
||||||
try:
|
try:
|
||||||
exec cmd in globals, locals
|
exec cmd in globals, locals
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue