]> granicus.if.org Git - python/commitdiff
Don't fail on a debug() statement, if the worker PID is (still) None.
authorFlorent Xicluna <florent.xicluna@gmail.com>
Mon, 8 Mar 2010 07:21:16 +0000 (07:21 +0000)
committerFlorent Xicluna <florent.xicluna@gmail.com>
Mon, 8 Mar 2010 07:21:16 +0000 (07:21 +0000)
Lib/multiprocessing/pool.py

index e2b670d98779b41bd659542a6bf522a155b04bec..2a8fae1c6a62b569caf201965b5619d3cebeca94 100644 (file)
@@ -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()
 
 #