Skip to content

multiprocessing.set_start_method() --> mp.set_start_method() #11331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2018

Conversation

cclauss
Copy link

@cclauss cclauss commented May 29, 2018

line 12 does import multiprocessing as mp so we must align to that name.

flake8 testing of https://github.com/matplotlib/matplotlib on Python 3.6.3

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./examples/misc/multiprocess_sgskip.py:105:9: F821 undefined name 'multiprocessing'
        multiprocessing.set_start_method("forkserver")
        ^
1     F821 undefined name 'multiprocessing'
1

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

line 12 does __import multiprocessing as mp__ so we must align to that name.

flake8 testing of https://github.com/matplotlib/matplotlib on Python 3.6.3

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./examples/misc/multiprocess_sgskip.py:105:9: F821 undefined name 'multiprocessing'
        multiprocessing.set_start_method("forkserver")
        ^
1     F821 undefined name 'multiprocessing'
1
```
@jklymak jklymak merged commit 1966a7a into matplotlib:master May 29, 2018
@cclauss cclauss deleted the patch-2 branch May 29, 2018 14:02
@QuLogic QuLogic added this to the v3.0 milestone May 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants