8000 multiprocessing.set_start_method() --> mp.set_start_method() · matplotlib/matplotlib@b0b7486 · GitHub
[go: up one dir, main page]

Skip to content

Commit b0b7486

Browse files
author
cclauss
authored
multiprocessing.set_start_method() --> mp.set_start_method()
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 ```
1 parent 2465e60 commit b0b7486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/misc/multiprocess_sgskip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,5 @@ def main():
102102

103103
if __name__ == '__main__':
104104
if plt.get_backend() == "MacOSX":
105-
multiprocessing.set_start_method("forkserver")
105+
mp.set_start_method("forkserver")
106106
main()

0 commit comments

Comments
 (0)
0