]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35491, multiprocessing: replace "RUN" with RUN (GH-11178)
authorVictor Stinner <vstinner@redhat.com>
Sun, 16 Dec 2018 22:40:49 +0000 (23:40 +0100)
committerGitHub <noreply@github.com>
Sun, 16 Dec 2018 22:40:49 +0000 (23:40 +0100)
Lib/multiprocessing/pool.py

index cede9bbd5d40d09bb87f2c5dbc5132f00cb6471a..1e26a9b56f0ca84b7f8c29a349e96d4e798348f5 100644 (file)
@@ -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