[Python-checkins] bpo-35491, multiprocessing: replace "RUN" with RUN (GH-11178)

Victor Stinner webhook-mailer at python.org
Sun Dec 16 17:40:53 EST 2018


https://github.com/python/cpython/commit/2dfe3511fe310c559d5571c52dcac381f33fd3a6
commit: 2dfe3511fe310c559d5571c52dcac381f33fd3a6
branch: master
author: Victor Stinner <vstinner at redhat.com>
committer: GitHub <noreply at github.com>
date: 2018年12月16日T23:40:49+01:00
summary:
bpo-35491, multiprocessing: replace "RUN" with RUN (GH-11178)
files:
M Lib/multiprocessing/pool.py
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 @@ def _handle_results(outqueue, get, cache):
 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /