/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/plugin.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-11 04:08:32 UTC
  • mto: (7143.16.20 even-more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7175.
  • Revision ID: jelmer@jelmer.uk-20181111040832-nsljjynzzwmznf3h
Run autopep8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
421
421
            if sanitised_name.startswith('brz_'):
422
422
                sanitised_name = sanitised_name[len('brz_'):]
423
423
            trace.warning("Unable to load %r in %r as a plugin because the "
424
 
                    "file path isn't a valid module name; try renaming "
425
 
                    "it to %r." % (name, dir, sanitised_name))
 
424
                          "file path isn't a valid module name; try renaming "
 
425
                          "it to %r." % (name, dir, sanitised_name))
426
426
        else:
427
427
            return record_plugin_warning(
428
428
                'Unable to load plugin %r from %r: %s' % (name, dir, e))
464
464
    items = []
465
465
    for name, a_plugin in sorted(getattr(state, 'plugins', {}).items()):
466
466
        items.append("%s[%s]" %
467
 
            (name, a_plugin.__version__))
 
467
                     (name, a_plugin.__version__))
468
468
    return ', '.join(items)
469
469
 
470
470