From e2949941d01276744dbfb7a2be11a9346f801f37 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 29 May 2021 05:40:41 -0400 Subject: [PATCH] Correct usage to load all entry points into the cache and resolve that using .select. --- src/virtualenv/run/plugin/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/virtualenv/run/plugin/base.py b/src/virtualenv/run/plugin/base.py index dfde75166..f1f4ee061 100644 --- a/src/virtualenv/run/plugin/base.py +++ b/src/virtualenv/run/plugin/base.py @@ -11,12 +11,12 @@ class PluginLoader(object): @classmethod def entry_points_for(cls, key): - return OrderedDict((e.name, e.load()) for e in cls.entry_points(group=key)) + return OrderedDict((e.name, e.load()) for e in cls.entry_points().select(group=key)) @staticmethod - def entry_points(**kwargs): + def entry_points(): if PluginLoader._ENTRY_POINTS is None: - PluginLoader._ENTRY_POINTS = entry_points(**kwargs) + PluginLoader._ENTRY_POINTS = entry_points() return PluginLoader._ENTRY_POINTS