/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: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from __future__ import absolute_import
20
20
 
21
 
from breezy import (
 
21
from ... import (
22
22
    cmdline,
23
23
    commands,
24
24
    config,
296
296
        elif selected_plugins is None:
297
297
            self.selected_plugins = None
298
298
        else:
299
 
            self.selected_plugins = set([x.replace('-', '_')
300
 
                                         for x in selected_plugins])
 
299
            self.selected_plugins = {x.replace('-', '_')
 
300
                                         for x in selected_plugins}
301
301
 
302
302
    def collect(self):
303
303
        self.global_options()
373
373
            if enum_data:
374
374
                try:
375
375
                    enum_data.registry_keys = opt.registry.keys()
376
 
                except ImportError, e:
 
376
                except ImportError as e:
377
377
                    enum_data.error_messages.append(
378
378
                        "ERROR getting registry keys for '--%s': %s"
379
379
                        % (opt.name, str(e).split('\n')[0]))