[Python-checkins] cpython (3.4): Fixed bugs in reprs of CookieJar and multiprocessing.dummy.Value.

serhiy.storchaka python-checkins at python.org
Tue Jul 22 10:11:44 CEST 2014


http://hg.python.org/cpython/rev/61066d464777
changeset:   91764:61066d464777
branch:      3.4
parent:      91761:a74c48aa43eb
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Tue Jul 22 11:09:36 2014 +0300
summary:
  Fixed bugs in reprs of CookieJar and multiprocessing.dummy.Value.

files:
  Lib/http/cookiejar.py                 |  4 ++--
  Lib/multiprocessing/dummy/__init__.py |  2 +-
  2 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py
--- a/Lib/http/cookiejar.py
+++ b/Lib/http/cookiejar.py
@@ -1722,12 +1722,12 @@
     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
diff --git a/Lib/multiprocessing/dummy/__init__.py b/Lib/multiprocessing/dummy/__init__.py
--- a/Lib/multiprocessing/dummy/__init__.py
+++ b/Lib/multiprocessing/dummy/__init__.py
@@ -104,7 +104,7 @@
         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__]

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list