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

  • Committer: Jelmer Vernooij
  • Date: 2017-08-26 19:06:32 UTC
  • mto: This revision was merged to the branch mainline in revision 6773.
  • Revision ID: jelmer@jelmer.uk-20170826190632-nmiqnyff6s4htneh
Use get_global_state>

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
        note(gettext("Exporting messages from builtin command: %s"), cmd_name)
251
251
        _write_command_help(exporter, command)
252
252
 
253
 
    plugins = breezy.global_state.plugins
254
 
    if plugin_name is not None and plugin_name not in breezy.global_state.plugins:
 
253
    plugins = breezy.get_global_state().plugins
 
254
    if plugin_name is not None and plugin_name not in plugins:
255
255
        raise errors.BzrError(gettext('Plugin %s is not loaded' % plugin_name))
256
256
    core_plugins = set(name for name in plugins
257
257
        if plugins[name].path().startswith(breezy.__path__[0]))