]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#6938: "ident" is always a string, so use a format code which works.
authorGeorg Brandl <georg@python.org>
Fri, 18 Sep 2009 09:18:27 +0000 (09:18 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 18 Sep 2009 09:18:27 +0000 (09:18 +0000)
Lib/multiprocessing/managers.py
Misc/NEWS

index fde0e40d373a2c4845d2f57d48ff6c6e00fac59c..8850258ce58a6e443c942ad3167572b43aa03f12 100644 (file)
@@ -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()
 
index dc37a37dd2ec1da783def1479cf132e6dfee73b3..8f674c8b3873614def4f2c886d496ea20107ab3c 100644 (file)
--- 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().