~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-12-21 19:52:00 UTC
  • mfrom: (4913.1.1 2.1.0rc1-thread-get_ident)
  • Revision ID: pqm@pqm.ubuntu.com-20091221195200-eprzx977tt964etd
(jam) Switch from threading.currentThread().ident to
        thread.get_ident()

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
 
34
34
import tempfile
 
35
import thread
35
36
import threading
36
37
 
37
38
from bzrlib import (
291
292
        self._command = None
292
293
        if 'hpss' in debug.debug_flags:
293
294
            self._request_start_time = osutils.timer_func()
294
 
            cur_thread = threading.currentThread()
295
 
            self._thread_id = getattr(cur_thread, 'ident', None)
296
 
            if self._thread_id is None:
297
 
                self._thread_id = cur_thread.getName()
 
295
            self._thread_id = thread.get_ident()
298
296
 
299
297
    def _trace(self, action, message, extra_bytes=None, include_time=False):
300
298
        # It is a bit of a shame that this functionality overlaps with that of