| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1722,12 +1722,12 @@ def __len__(self): | |||
| 1722 | 1722 | def __repr__(self): | |
| 1723 | 1723 | r = [] | |
| 1724 | 1724 | 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)) | ||
| 1726 | 1726 | ||
| 1727 | 1727 | def __str__(self): | |
| 1728 | 1728 | r = [] | |
| 1729 | 1729 | 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)) | ||
| 1731 | 1731 | ||
| 1732 | 1732 | ||
| 1733 | 1733 | # derives from OSError for backwards-compatibility with Python 2.4.0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -104,7 +104,7 @@ def _set(self, value): | |||
| 104 | 104 | self._value = value | |
| 105 | 105 | value = property(_get, _set) | |
| 106 | 106 | 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) | ||
| 108 | 108 | ||
| 109 | 109 | def Manager(): | |
| 110 | 110 | return sys.modules[__name__] | |
| Back | FazBrowse Home | New Git URL |
0 commit comments