mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Fixed bugs in reprs of CookieJar and multiprocessing.dummy.Value.
This commit is contained in:
commit
fbc877b794
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue