From: Florent Xicluna Date: Mon, 8 Mar 2010 07:21:16 +0000 (+0000) Subject: Don't fail on a debug() statement, if the worker PID is (still) None. X-Git-Tag: v2.7b1~417 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52584779a6484fcc85d9172c7fdabedb9f36a9d6;p=python Don't fail on a debug() statement, if the worker PID is (still) None. --- diff --git a/Lib/multiprocessing/pool.py b/Lib/multiprocessing/pool.py index e2b670d987..2a8fae1c6a 100644 --- a/Lib/multiprocessing/pool.py +++ b/Lib/multiprocessing/pool.py @@ -451,7 +451,7 @@ class Pool(object): for w in pool: if w.exitcode is None: # worker has not yet exited - debug('cleaning up worker %d' % w.pid) + debug('cleaning up worker %s' % w.pid) w.join() #