/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/bzr/smart/medium.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-18 14:23:08 UTC
  • mto: This revision was merged to the branch mainline in revision 7195.
  • Revision ID: jelmer@jelmer.uk-20181118142308-8ga1hw86zmlwr7cc
Add API documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
import sys
33
33
import time
34
34
 
 
35
try:
 
36
    import _thread
 
37
except ImportError:
 
38
    import thread as _thread
 
39
 
35
40
import breezy
36
41
from ...lazy_import import lazy_import
37
42
lazy_import(globals(), """
38
43
import select
39
44
import socket
40
 
import thread
41
45
import weakref
42
46
 
43
47
from breezy import (
432
436
        tstart = osutils.timer_func()
433
437
        osutils.send_all(self.socket, bytes, self._report_activity)
434
438
        if 'hpss' in debug.debug_flags:
435
 
            thread_id = thread.get_ident()
 
439
            thread_id = _thread.get_ident()
436
440
            trace.mutter('%12s: [%s] %d bytes to the socket in %.3fs'
437
441
                         % ('wrote', thread_id, len(bytes),
438
442
                            osutils.timer_func() - tstart))