/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: Robert Collins
  • Date: 2010-05-06 11:08:10 UTC
  • mto: This revision was merged to the branch mainline in revision 5223.
  • Revision ID: robertc@robertcollins.net-20100506110810-h3j07fh5gmw54s25
Cleaner matcher matching revised unlocking protocol.

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()