/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/plugins/bash_completion/bashcomp.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-02-14 03:16:54 UTC
  • mfrom: (7479.2.3 no-more-python2)
  • Revision ID: breezy.the.bot@gmail.com-20200214031654-bp1xtv2jr9nmhto3
Drop python2 support.

Merged from https://code.launchpad.net/~jelmer/brz/no-more-python2/+merge/378694

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    option,
27
27
    plugin,
28
28
)
29
 
from ...sixish import (
30
 
    text_type,
31
 
    )
32
29
import breezy
33
30
import re
34
31
import sys
428
425
    """
429
426
 
430
427
    takes_options = [
431
 
        option.Option("function-name", short_name="f", type=text_type, argname="name",
 
428
        option.Option("function-name", short_name="f", type=str, argname="name",
432
429
                      help="Name of the generated function (default: _brz)"),
433
430
        option.Option("function-only", short_name="o", type=None,
434
431
                      help="Generate only the shell function, don't enable it"),
435
432
        option.Option("debug", type=None, hidden=True,
436
433
                      help="Enable shell code useful for debugging"),
437
 
        option.ListOption("plugin", type=text_type, argname="name",
 
434
        option.ListOption("plugin", type=str, argname="name",
438
435
                          # param_name="selected_plugins", # doesn't work, bug #387117
439
436
                          help="Enable completions for the selected plugin"
440
437
                          + " (default: all plugins)"),