Skip to content

Commit e294994

Browse files
committed
Correct usage to load all entry points into the cache and resolve that using .select.
1 parent f224121 commit e294994

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/virtualenv/run/plugin/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ class PluginLoader(object):
1111

1212
@classmethod
1313
def entry_points_for(cls, key):
14-
return OrderedDict((e.name, e.load()) for e in cls.entry_points(group=key))
14+
return OrderedDict((e.name, e.load()) for e in cls.entry_points().select(group=key))
1515

1616
@staticmethod
17-
def entry_points(**kwargs):
17+
def entry_points():
1818
if PluginLoader._ENTRY_POINTS is None:
19-
PluginLoader._ENTRY_POINTS = entry_points(**kwargs)
19+
PluginLoader._ENTRY_POINTS = entry_points()
2020
return PluginLoader._ENTRY_POINTS
2121

2222

0 commit comments

Comments
 (0)