diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-07-22 08:09:36 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-07-22 08:09:36 (GMT) |
commit | 1392df96efdccc7ed369fe0ab8e55bf4e9c9e0c4 (patch) | |
tree | 19c97baa0d4bc291aa2c4cd54709f56db2b96494 /Lib/http | |
parent | cb7d43cbdff11a49f841883f8daf7135bc2cdac8 (diff) | |
download | cpython-1392df96efdccc7ed369fe0ab8e55bf4e9c9e0c4.zip cpython-1392df96efdccc7ed369fe0ab8e55bf4e9c9e0c4.tar.gz cpython-1392df96efdccc7ed369fe0ab8e55bf4e9c9e0c4.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 |