mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-14 08:24:46 +00:00
Remove usage of self.manager.map() in load_plugins()
This commit is contained in:
parent
ecee230c6f
commit
d58af9f6ae
1 changed files with 2 additions and 5 deletions
|
|
@ -415,14 +415,11 @@ class PluginTypeManager:
|
||||||
if self.plugins_loaded:
|
if self.plugins_loaded:
|
||||||
return
|
return
|
||||||
|
|
||||||
def load_plugin(plugin):
|
for plugin in self.plugins.values():
|
||||||
"""Call each plugin's load_plugin method."""
|
plugin.load_plugin()
|
||||||
return plugin.load_plugin()
|
|
||||||
|
|
||||||
plugins = list(self.manager.map(load_plugin))
|
|
||||||
# Do not set plugins_loaded if we run into an exception
|
# Do not set plugins_loaded if we run into an exception
|
||||||
self.plugins_loaded = True
|
self.plugins_loaded = True
|
||||||
return plugins
|
|
||||||
|
|
||||||
def register_plugin_versions(self, optmanager):
|
def register_plugin_versions(self, optmanager):
|
||||||
"""Register the plugins and their versions with the OptionManager."""
|
"""Register the plugins and their versions with the OptionManager."""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue