Skip to content

Commit fbc877b

Browse files
Fixed bugs in reprs of CookieJar and multiprocessing.dummy.Value.
2 parents dfead8d + 1392df9 commit fbc877b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Lib/http/cookiejar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,12 +1722,12 @@ def __len__(self):
17221722
def __repr__(self):
17231723
r = []
17241724
for cookie in self: r.append(repr(cookie))
1725-
return "<%s[%s]>" % (self.__class__, ", ".join(r))
1725+
return "<%s[%s]>" % (self.__class__.__name__, ", ".join(r))
17261726

17271727
def __str__(self):
17281728
r = []
17291729
for cookie in self: r.append(str(cookie))
1730-
return "<%s[%s]>" % (self.__class__, ", ".join(r))
1730+
return "<%s[%s]>" % (self.__class__.__name__, ", ".join(r))
17311731

17321732

17331733
# derives from OSError for backwards-compatibility with Python 2.4.0

Lib/multiprocessing/dummy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _set(self, value):
104104
self._value = value
105105
value = property(_get, _set)
106106
def __repr__(self):
107-
return '<%r(%r, %r)>'%(type(self).__name__,self._typecode,self._value)
107+
return '<%s(%r, %r)>'%(type(self).__name__,self._typecode,self._value)
108108

109109
def Manager():
110110
return sys.modules[__name__]

0 commit comments

Comments
 (0)