File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ def check_pending(self):
251251 % (name , hookimpl .plugin ),
252252 )
253253
254- def load_setuptools_entrypoints (self , entrypoint_name ):
254+ def load_setuptools_entrypoints (self , entrypoint_name , name = None ):
255255 """ Load modules from querying the specified setuptools entrypoint name.
256256 Return the number of loaded plugins. """
257257 from pkg_resources import (
@@ -260,7 +260,7 @@ def load_setuptools_entrypoints(self, entrypoint_name):
260260 VersionConflict ,
261261 )
262262
263- for ep in iter_entry_points (entrypoint_name ):
263+ for ep in iter_entry_points (entrypoint_name , name = name ):
264264 # is the plugin registered or blocked?
265265 if self .get_plugin (ep .name ) or self .is_blocked (ep .name ):
266266 continue
You can’t perform that action at this time.
0 commit comments