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

  • Committer: Jelmer Vernooij
  • Date: 2018-11-16 10:50:21 UTC
  • mfrom: (7164 work)
  • mto: This revision was merged to the branch mainline in revision 7165.
  • Revision ID: jelmer@jelmer.uk-20181116105021-xl419v2rh4aus1au
Merge trunk.

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
 
17
19
import sys
18
20
 
19
21
 
33
35
        outfile = sys.stdout
34
36
 
35
37
    from inspect import getdoc
36
 
    import commands
 
38
    from . import commands
37
39
    cmdobj = commands.get_cmd_object(cmdname)
38
40
 
39
41
    doc = getdoc(cmdobj)
55
57
            outfile.write('--%s\n' % opt.name)
56
58
 
57
59
 
58
 
def shellcomplete_commands(outfile = None):
 
60
def shellcomplete_commands(outfile=None):
59
61
    """List all commands"""
60
 
    import inspect
61
 
    import commands
 
62
    from . import commands
62
63
    from inspect import getdoc
63
64
 
64
65
    commands.install_bzr_command_hooks()