/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: Jelmer Vernooij
  • Date: 2020-02-07 02:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200207021430-m49iq3x4x8xlib6x
Drop python2 support.

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)"),