/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/smart/client.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
from __future__ import absolute_import
18
18
 
19
 
from bzrlib import lazy_import
 
19
from breezy import lazy_import
20
20
lazy_import.lazy_import(globals(), """
21
 
from bzrlib.smart import request as _mod_request
 
21
from breezy.smart import request as _mod_request
22
22
""")
23
23
 
24
 
import bzrlib
25
 
from bzrlib.smart import message, protocol
26
 
from bzrlib import (
 
24
import breezy
 
25
from breezy.smart import message, protocol
 
26
from breezy import (
27
27
    debug,
28
28
    errors,
29
29
    hooks,
40
40
        """
41
41
        self._medium = medium
42
42
        if headers is None:
43
 
            self._headers = {'Software version': bzrlib.__version__}
 
43
            self._headers = {'Software version': breezy.__version__}
44
44
        else:
45
45
            self._headers = dict(headers)
46
46
 
318
318
class SmartClientHooks(hooks.Hooks):
319
319
 
320
320
    def __init__(self):
321
 
        hooks.Hooks.__init__(self, "bzrlib.smart.client", "_SmartClient.hooks")
 
321
        hooks.Hooks.__init__(self, "breezy.smart.client", "_SmartClient.hooks")
322
322
        self.add_hook('call',
323
323
            "Called when the smart client is submitting a request to the "
324
 
            "smart server. Called with a bzrlib.smart.client.CallHookParams "
 
324
            "smart server. Called with a breezy.smart.client.CallHookParams "
325
325
            "object. Streaming request bodies, and responses, are not "
326
326
            "accessible.", None)
327
327