mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
Only use multiprocessing when the method is fork
In python3.8 on macos and in all versions on windows the multiprocessing method is `spawn` which does not preserve class state.
This commit is contained in:
parent
d599950e6e
commit
51f32bbe93
4 changed files with 15 additions and 45 deletions
|
|
@ -59,12 +59,6 @@ allows plugins to use this to retrieve ``stdin`` if necessary.
|
|||
This provides a convenient and explicitly named function that checks if we are
|
||||
currently running on a Windows (or ``nt``) operating system.
|
||||
|
||||
.. autofunction:: flake8.utils.can_run_multiprocessing_on_windows
|
||||
|
||||
This provides a separate and distinct check from
|
||||
:func:`~flake8.utils.is_windows` that allows us to check if the version of
|
||||
Python we're using can actually use multiprocessing on Windows.
|
||||
|
||||
.. autofunction:: flake8.utils.is_using_stdin
|
||||
|
||||
Another helpful function that is named only to be explicit given it is a very
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue