summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-07-22 08:10:37 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-07-22 08:10:37 (GMT)
commitfbc877b7940beaa23fea020b8a137a660eff419e (patch)
treed96f72eb3c38374fb603f26483782ccfe663904b
parentdfead8ddc22a52656c90cc876cbb75be2b844c16 (diff)
parent1392df96efdccc7ed369fe0ab8e55bf4e9c9e0c4 (diff)
downloadcpython-fbc877b7940beaa23fea020b8a137a660eff419e.zip
cpython-fbc877b7940beaa23fea020b8a137a660eff419e.tar.gz
cpython-fbc877b7940beaa23fea020b8a137a660eff419e.tar.bz2
Fixed bugs in reprs of CookieJar and multiprocessing.dummy.Value.
-rw-r--r--Lib/http/cookiejar.py4
-rw-r--r--Lib/multiprocessing/dummy/__init__.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py
index 4dc468b..2ddd523 100644
--- a/Lib/http/cookiejar.py
+++ b/Lib/http/cookiejar.py
@@ -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
diff --git a/Lib/multiprocessing/dummy/__init__.py b/Lib/multiprocessing/dummy/__init__.py
index 97f7af7..135db7f 100644
--- a/Lib/multiprocessing/dummy/__init__.py
+++ b/Lib/multiprocessing/dummy/__init__.py
@@ -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__]