~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/bash_completion/bashcomp.py

  • Committer: Jelmer Vernooij
  • Date: 2012-02-20 12:19:29 UTC
  • mfrom: (6437.23.11 2.5)
  • mto: (6581.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6582.
  • Revision ID: jelmer@samba.org-20120220121929-7ni2psvjoatm1yp4
Merge bzr/2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# along with this program; if not, write to the Free Software
17
17
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 
 
19
from __future__ import absolute_import
 
20
 
19
21
from bzrlib import (
20
22
    cmdline,
21
23
    commands,
26
28
)
27
29
import bzrlib
28
30
import re
 
31
import sys
29
32
 
30
33
 
31
34
class BashCodeGen(object):
430
433
        ]
431
434
 
432
435
    def run(self, **kwargs):
433
 
        import sys
434
 
        from bashcomp import bash_completion_function
435
436
        if 'plugin' in kwargs:
436
437
            # work around bug #387117 which prevents us from using param_name
437
438
            if len(kwargs['plugin']) > 0:
442
443
 
443
444
if __name__ == '__main__':
444
445
 
445
 
    import sys
446
446
    import locale
447
447
    import optparse
448
448