~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugin.py

  • Committer: Martin Pool
  • Date: 2005-07-07 10:22:02 UTC
  • Revision ID: mbp@sourcefrog.net-20050707102201-2d2a13a25098b101
- rearrange and clear up merged weave

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    _loaded = True
57
57
 
58
58
    import sys, os, imp
59
 
    
 
59
    try:
 
60
        set
 
61
    except NameError:
 
62
        from sets import Set as set         # python2.3
 
63
 
60
64
    from bzrlib.trace import log_error, mutter, log_exception
61
65
    from bzrlib.errors import BzrError
62
66
 
110
114
                try:
111
115
                    plugin = imp.load_module('bzrlib.plugin.' + name,
112
116
                                             *plugin_info)
113
 
                    all_plugins.append(plugin)
 
117
                    all_plugins.append(plugin_info)
114
118
                finally:
115
119
                    if plugin_info[0] is not None:
116
120
                        plugin_info[0].close()