summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-07-22 08:09:36 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-07-22 08:09:36 (GMT)
commit1392df96efdccc7ed369fe0ab8e55bf4e9c9e0c4 (patch)
tree19c97baa0d4bc291aa2c4cd54709f56db2b96494 /Lib
parentcb7d43cbdff11a49f841883f8daf7135bc2cdac8 (diff)
downloadcpython-1392df96efdccc7ed369fe0ab8e55bf4e9c9e0c4.zip
cpython-1392df96efdccc7ed369fe0ab8e55bf4e9c9e0c4.tar.gz
cpython-1392df96efdccc7ed369fe0ab8e55bf4e9c9e0c4.tar.bz2
Fixed bugs in reprs of CookieJar and multiprocessing.dummy.Value.
Diffstat (limited to 'Lib')
-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__]