Commit 0013cced authored by Yury Selivanov's avatar Yury Selivanov

asyncio: Sync with github

parent 9f3c094e
......@@ -93,7 +93,6 @@ class Task(futures.Future):
futures.Future.__del__(self)
def _repr_info(self):
# Private method, do not use it.
info = super()._repr_info()
if self._must_cancel:
......@@ -222,7 +221,6 @@ class Task(futures.Future):
return True
def _step(self, value=None, exc=None):
# Private method, do not use it.
assert not self.done(), \
'_step(): already done: {!r}, {!r}, {!r}'.format(self, value, exc)
if self._must_cancel:
......@@ -286,7 +284,6 @@ class Task(futures.Future):
self = None # Needed to break cycles when an exception occurs.
def _wakeup(self, future):
# Private method, do not use it.
try:
future.result()
except Exception as exc:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment