mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #22033: Reprs of most Python implemened classes now contain actual
class name instead of hardcoded one.
This commit is contained in:
parent
54701f303f
commit
465e60e654
24 changed files with 102 additions and 74 deletions
|
@ -131,7 +131,7 @@ class Headers:
|
|||
return self._headers[:]
|
||||
|
||||
def __repr__(self):
|
||||
return "Headers(%r)" % self._headers
|
||||
return "%s(%r)" % (self.__class__.__name__, self._headers)
|
||||
|
||||
def __str__(self):
|
||||
"""str() returns the formatted headers, complete with end line,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue