mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +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
|
@ -133,8 +133,8 @@ class Task(futures._PyFuture): # Inherit Python Task implementation
|
|||
|
||||
__class_getitem__ = classmethod(GenericAlias)
|
||||
|
||||
def _repr_info(self):
|
||||
return base_tasks._task_repr_info(self)
|
||||
def __repr__(self):
|
||||
return base_tasks._task_repr(self)
|
||||
|
||||
def get_coro(self):
|
||||
return self._coro
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue