mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 05:26:53 +00:00
Merge branch 'bug/179' into 'master'
Serialize Checkers PluginTypeManager to a dict *Description of changes* Try to side-step issues with attributes not being set/updated on plugins when used with multiprocessing and Queues. *Related to:* #179, #164 See merge request !98
This commit is contained in:
commit
ce94cfea69
9 changed files with 70 additions and 29 deletions
|
|
@ -129,9 +129,9 @@ class FileProcessor(object):
|
|||
|
||||
def update_checker_state_for(self, plugin):
|
||||
"""Update the checker_state attribute for the plugin."""
|
||||
if 'checker_state' in plugin.parameters:
|
||||
if 'checker_state' in plugin['parameters']:
|
||||
self.checker_state = self._checker_states.setdefault(
|
||||
plugin.name, {}
|
||||
plugin['name'], {}
|
||||
)
|
||||
|
||||
def next_logical_line(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue