/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2017-06-10 18:19:26 UTC
  • mfrom: (6672.1.3 kill-api)
  • Revision ID: breezy.the.bot@gmail.com-20170610181926-cmki2ndblpjrtn7k
Remove ``breezy.api`` and the concept of API versions.

Merged from https://code.launchpad.net/~jelmer/brz/kill-api/+merge/325442

Show diffs side-by-side

added added

removed removed

Lines of Context:
403
403
        return
404
404
    try:
405
405
        __import__(_MODULE_PREFIX + name)
406
 
    except errors.IncompatibleAPI as e:
 
406
    except errors.IncompatibleVersion as e:
407
407
        warning_message = (
408
 
            "Unable to load plugin %r. It requested API version "
409
 
            "%s of module %s but the minimum exported version is %s, and "
410
 
            "the maximum is %s" %
411
 
            (name, e.wanted, e.api, e.minimum, e.current))
 
408
            "Unable to load plugin %r. It supports %s "
 
409
            "versions %r but the current version is %s" %
 
410
            (name, e.api.__name__, e.wanted, e.current))
412
411
        return record_plugin_warning(warning_message)
413
412
    except Exception as e:
414
413
        trace.log_exception_quietly()