/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 bzrlib/shellcomplete.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-04-06 06:59:03 UTC
  • mfrom: (5051.5.1 subunit)
  • Revision ID: pqm@pqm.ubuntu.com-20100406065903-y9dxgwmog1pmw7dz
Use subunit when running tests in PQM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
from __future__ import absolute_import
18
 
 
19
17
import sys
20
18
 
21
19
 
35
33
        outfile = sys.stdout
36
34
 
37
35
    from inspect import getdoc
38
 
    from . import commands
 
36
    import commands
39
37
    cmdobj = commands.get_cmd_object(cmdname)
40
38
 
41
39
    doc = getdoc(cmdobj)
57
55
            outfile.write('--%s\n' % opt.name)
58
56
 
59
57
 
60
 
def shellcomplete_commands(outfile=None):
 
58
def shellcomplete_commands(outfile = None):
61
59
    """List all commands"""
62
 
    from . import commands
 
60
    import inspect
 
61
    import commands
63
62
    from inspect import getdoc
64
63
 
65
64
    commands.install_bzr_command_hooks()