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: http://git.ipfire.org/?a=commitdiff_plain;h=52584779a6484fcc85d9172c7fdabedb9f36a9d6;p=thirdparty%2FPython%2Fcpython.git 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 e2b670d98779..2a8fae1c6a62 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() #