diff options
author | Daniel Rocco <drocco@thebrightlink.com> | 2013-06-30 07:39:13 -0400 |
---|---|---|
committer | Daniel Rocco <drocco@thebrightlink.com> | 2013-11-23 23:12:45 -0500 |
commit | fdde242a8ebf655e3bc81d753dc9d8b9869ed29e (patch) | |
tree | 6e5a548fc005287354c3a7bfc94b9201440eb3e0 | |
parent | cc4e5c18dc5bc9d39adc2107342002c7239e14ae (diff) | |
download | stevedore-fdde242a8ebf655e3bc81d753dc9d8b9869ed29e.tar.gz |
use item access instead of temporary dict when ordering extensions
-rw-r--r-- | stevedore/named.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stevedore/named.py b/stevedore/named.py index e4cf857..e26667f 100644 --- a/stevedore/named.py +++ b/stevedore/named.py @@ -44,8 +44,7 @@ class NamedExtensionManager(ExtensionManager): ) if name_order: - ext_map = dict((x.name, x) for x in self.extensions) - self.extensions = [ext_map[n] for n in names] + self.extensions = [self[n] for n in self._names] def _load_one_plugin(self, ep, invoke_on_load, invoke_args, invoke_kwds): # Check the name before going any further to prevent |