~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to bzrplugins/lpserve.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2009-06-03 05:48:10 UTC
  • mfrom: (8496.2.1 fix-lpserve-imports)
  • Revision ID: launchpad@pqm.canonical.com-20090603054810-8pm4urx8ksavhgr0
[r=gmb][ui=none] Fix lp-serve plugin imports. Only affects
        development environments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
from bzrlib import lockdir, ui
18
18
 
19
19
from bzrlib.smart import medium, server
20
 
from bzrlib.transport import get_transport, remote
 
20
from bzrlib.transport import get_transport
21
21
 
22
22
 
23
23
class cmd_launchpad_server(Command):
57
57
            smart_server = medium.SmartServerPipeStreamMedium(
58
58
                sys.stdin, sys.stdout, transport)
59
59
        else:
60
 
            host = remote.BZR_DEFAULT_INTERFACE
 
60
            host = medium.BZR_DEFAULT_INTERFACE
61
61
            if port is None:
62
 
                port = remote.BZR_DEFAULT_PORT
 
62
                port = medium.BZR_DEFAULT_PORT
63
63
            else:
64
64
                if ':' in port:
65
65
                    host, port = port.split(':')