/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:26:22 UTC
  • mfrom: (7167.1.4 run-flake8)
  • Revision ID: breezy.the.bot@gmail.com-20181116182622-qw3gan3hz78a2imw
Add a flake8 test.

Merged from https://code.launchpad.net/~jelmer/brz/run-flake8/+merge/358902

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