diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-07-22 08:10:37 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-07-22 08:10:37 (GMT) |
commit | fbc877b7940beaa23fea020b8a137a660eff419e (patch) | |
tree | d96f72eb3c38374fb603f26483782ccfe663904b /Lib/http | |
parent | dfead8ddc22a52656c90cc876cbb75be2b844c16 (diff) | |
parent | 1392df96efdccc7ed369fe0ab8e55bf4e9c9e0c4 (diff) | |
download | cpython-fbc877b7940beaa23fea020b8a137a660eff419e.zip cpython-fbc877b7940beaa23fea020b8a137a660eff419e.tar.gz cpython-fbc877b7940beaa23fea020b8a137a660eff419e.tar.bz2 |
Fixed bugs in reprs of CookieJar and multiprocessing.dummy.Value.
Diffstat (limited to 'Lib/http')
-rw-r--r-- | Lib/http/cookiejar.py | 4 |
1 files changed, 2 insertions, 2 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 |