From c40e60e5e50f8ac1d157cf524f90d024c6bf31a3 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 18 Sep 2009 09:18:27 +0000 Subject: #6938: "ident" is always a string, so use a format code which works. --- Lib/multiprocessing/managers.py | 2 +- Misc/NEWS | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py index fde0e40..8850258 100644 --- a/Lib/multiprocessing/managers.py +++ b/Lib/multiprocessing/managers.py @@ -410,7 +410,7 @@ class Server(object): self.id_to_refcount[ident] -= 1 if self.id_to_refcount[ident] == 0: del self.id_to_obj[ident], self.id_to_refcount[ident] - util.debug('disposing of obj with id %d', ident) + util.debug('disposing of obj with id %r', ident) finally: self.mutex.release() diff --git a/Misc/NEWS b/Misc/NEWS index dc37a37..8f674c8 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -376,6 +376,9 @@ Core and Builtins Library ------- +- Issue #6938: Fix a TypeError in string formatting of a multiprocessing + debug message. + - Issue #6635: Fix profiler printing usage message. - Issue #6856: Add a filter keyword argument to TarFile.add(). -- cgit v0.12