]> granicus.if.org Git - python/commitdiff
Fixed bugs in reprs of CookieJar and multiprocessing.dummy.Value.
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 22 Jul 2014 08:09:36 +0000 (11:09 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 22 Jul 2014 08:09:36 +0000 (11:09 +0300)
Lib/http/cookiejar.py
Lib/multiprocessing/dummy/__init__.py

index 4dc468bacc9ac678da872b4e8935a9dab11e38d6..2ddd523bbaffada7aaff6ab38e2dfb367565ecf5 100644 (file)
@@ -1722,12 +1722,12 @@ class CookieJar:
     def __repr__(self):
         r = []
         for cookie in self: r.append(repr(cookie))
-        return "<%s[%s]>" % (self.__class__, ", ".join(r))
+        return "<%s[%s]>" % (self.__class__.__name__, ", ".join(r))
 
     def __str__(self):
         r = []
         for cookie in self: r.append(str(cookie))
-        return "<%s[%s]>" % (self.__class__, ", ".join(r))
+        return "<%s[%s]>" % (self.__class__.__name__, ", ".join(r))
 
 
 # derives from OSError for backwards-compatibility with Python 2.4.0
index 97f7af737ea2f973d4c3fa6a7903f1e5b40c19c3..135db7f77f9d3f796d70878d4b7303b4a20b5758 100644 (file)
@@ -104,7 +104,7 @@ class Value(object):
         self._value = value
     value = property(_get, _set)
     def __repr__(self):
-        return '<%r(%r, %r)>'%(type(self).__name__,self._typecode,self._value)
+        return '<%s(%r, %r)>'%(type(self).__name__,self._typecode,self._value)
 
 def Manager():
     return sys.modules[__name__]