From: Victor Stinner Date: Sun, 16 Dec 2018 22:40:49 +0000 (+0100) Subject: bpo-35491, multiprocessing: replace "RUN" with RUN (GH-11178) X-Git-Tag: v3.8.0a1~270 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dfe3511fe310c559d5571c52dcac381f33fd3a6;p=thirdparty%2FPython%2Fcpython.git bpo-35491, multiprocessing: replace "RUN" with RUN (GH-11178) --- diff --git a/Lib/multiprocessing/pool.py b/Lib/multiprocessing/pool.py index cede9bbd5d40..1e26a9b56f0c 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