~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugin.py

  • Committer: Martin Pool
  • Date: 2005-06-28 05:33:40 UTC
  • Revision ID: mbp@sourcefrog.net-20050628053340-ea73b03fbcde9c46
- Remove XMLMixin class in favour of simple pack_xml, unpack_xml functions
  called as needed.  

- Avoid importing xml and ElementTree library unless needed.

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()