/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: 2018-11-06 01:18:08 UTC
  • mfrom: (7143 work)
  • mto: This revision was merged to the branch mainline in revision 7151.
  • Revision ID: jelmer@jelmer.uk-20181106011808-y870f4vq0ork3ahu
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
288
288
    def __cmp__(self, other):
289
289
        return cmp(self.name, other.name)
290
290
 
 
291
    def __lt__(self, other):
 
292
        return self.name < other.name
 
293
 
291
294
 
292
295
class DataCollector(object):
293
296
 
366
369
 
367
370
    def option(self, opt):
368
371
        optswitches = {}
369
 
        parser = option.get_optparser({opt.name: opt})
 
372
        parser = option.get_optparser([opt])
370
373
        parser = self.wrap_parser(optswitches, parser)
371
374
        optswitches.clear()
372
375
        opt.add_option(parser, opt.short_name())