summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-09-18 09:18:27 (GMT)
committerGeorg Brandl <georg@python.org>2009-09-18 09:18:27 (GMT)
commitc40e60e5e50f8ac1d157cf524f90d024c6bf31a3 (patch)
tree3b1edc36002e4955e22248db5333fc51c43bd8ec
parent097f70881a997f94db995502d859b414f80767a1 (diff)
downloadcpython-c40e60e5e50f8ac1d157cf524f90d024c6bf31a3.zip
cpython-c40e60e5e50f8ac1d157cf524f90d024c6bf31a3.tar.gz
cpython-c40e60e5e50f8ac1d157cf524f90d024c6bf31a3.tar.bz2
#6938: "ident" is always a string, so use a format code which works.
-rw-r--r--Lib/multiprocessing/managers.py2
-rw-r--r--Misc/NEWS3
2 files changed, 4 insertions, 1 deletions
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().