mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
bpo-47039: Normalize repr() of asyncio future and task objects (GH-31950)
This commit is contained in:
parent
a7c5414832
commit
30b5d41fab
7 changed files with 42 additions and 118 deletions
|
@ -85,11 +85,8 @@ class Future:
|
|||
self._source_traceback = format_helpers.extract_stack(
|
||||
sys._getframe(1))
|
||||
|
||||
_repr_info = base_futures._future_repr_info
|
||||
|
||||
def __repr__(self):
|
||||
return '<{} {}>'.format(self.__class__.__name__,
|
||||
' '.join(self._repr_info()))
|
||||
return base_futures._future_repr(self)
|
||||
|
||||
def __del__(self):
|
||||
if not self.__log_traceback:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue