~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-05-05 09:40:32 UTC
  • mfrom: (4326.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090505094032-o2kvwmfl4dqaf1jr
(vila) Make --coverage works for threads too

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
lazy_import(globals(), """
36
36
import codecs
37
37
import errno
 
38
import threading
38
39
from warnings import warn
39
40
 
40
41
import bzrlib
682
683
 
683
684
    tracer = trace.Trace(count=1, trace=0)
684
685
    sys.settrace(tracer.globaltrace)
 
686
    threading.settrace(tracer.globaltrace)
685
687
 
686
688
    try:
687
689
        return exception_to_return_code(the_callable, *args, **kwargs)