summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-12-16 22:40:49 (GMT)
committerGitHub <noreply@github.com>2018-12-16 22:40:49 (GMT)
commit2dfe3511fe310c559d5571c52dcac381f33fd3a6 (patch)
tree202410d034064deb38dd65614f8a20fb619c4fe9 /Lib
parentb912f9342e7a37d170ba659c13c959115c11545a (diff)
downloadcpython-2dfe3511fe310c559d5571c52dcac381f33fd3a6.zip
cpython-2dfe3511fe310c559d5571c52dcac381f33fd3a6.tar.gz
cpython-2dfe3511fe310c559d5571c52dcac381f33fd3a6.tar.bz2
bpo-35491, multiprocessing: replace "RUN" with RUN (GH-11178)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/multiprocessing/pool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/multiprocessing/pool.py b/Lib/multiprocessing/pool.py
index cede9bb..1e26a9b 100644
--- a/Lib/multiprocessing/pool.py
+++ b/Lib/multiprocessing/pool.py
@@ -486,7 +486,7 @@ class Pool(object):
util.debug('result handler got EOFError/OSError -- exiting')
return
- if thread._state != "RUN":
+ if thread._state != RUN:
assert thread._state == TERMINATE, "Thread not in TERMINATE"
util.debug('result handler found thread._state=TERMINATE')
break