Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use item access instead of temporary dict when ordering extensions
  • Loading branch information
drocco007 committed Nov 24, 2013
1 parent cc4e5c1 commit fdde242
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stevedore/named.py
Expand Up @@ -44,8 +44,7 @@ def __init__(self, namespace, names,
)

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
Expand Down

0 comments on commit fdde242

Please sign in to comment.