summaryrefslogtreecommitdiffstats
path: root/Lib/cookielib.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-07-22 08:11:01 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-07-22 08:11:01 (GMT)
commitfc1ae6c67358a1937e0bdbefd106d2c1a673182e (patch)
treec28761b6d75af600601a4ef4b3a8aab19f29154d /Lib/cookielib.py
parent7cc3b0aefb363f37faead33d042c1c952e362d4b (diff)
downloadcpython-fc1ae6c67358a1937e0bdbefd106d2c1a673182e.zip
cpython-fc1ae6c67358a1937e0bdbefd106d2c1a673182e.tar.gz
cpython-fc1ae6c67358a1937e0bdbefd106d2c1a673182e.tar.bz2
Fixed bugs in reprs of CookieJar and multiprocessing.dummy.Value.
Diffstat (limited to 'Lib/cookielib.py')
-rw-r--r--Lib/cookielib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/cookielib.py b/Lib/cookielib.py
index f9c8d2f..f260bc5 100644
--- a/Lib/cookielib.py
+++ b/Lib/cookielib.py
@@ -1719,12 +1719,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 IOError for backwards-compatibility with Python 2.4.0