From 3b5476356331938cf7194c471256a8e2d4d1be61 Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Wed, 14 Oct 2015 18:34:50 +0300 Subject: [PATCH] Change catalog subsets factory implementation --- dependency_injector/catalog.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dependency_injector/catalog.py b/dependency_injector/catalog.py index badf6d6e..f7f543ea 100644 --- a/dependency_injector/catalog.py +++ b/dependency_injector/catalog.py @@ -70,9 +70,8 @@ class AbstractCatalog(object): Create subset of catalog providers using provider names. """ - return Subset(*(provider - for name, provider in six.iteritems(cls.providers) - if name in provider_names)) + return Subset(*(cls.get(provider_name) + for provider_name in provider_names)) @classmethod def is_subset_owner(cls, subset):