mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 17:47:02 +03:00
Change catalog subsets factory implementation
This commit is contained in:
parent
4b22680406
commit
3b54763563
|
@ -70,9 +70,8 @@ class AbstractCatalog(object):
|
||||||
|
|
||||||
Create subset of catalog providers using provider names.
|
Create subset of catalog providers using provider names.
|
||||||
"""
|
"""
|
||||||
return Subset(*(provider
|
return Subset(*(cls.get(provider_name)
|
||||||
for name, provider in six.iteritems(cls.providers)
|
for provider_name in provider_names))
|
||||||
if name in provider_names))
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def is_subset_owner(cls, subset):
|
def is_subset_owner(cls, subset):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user