summaryrefslogtreecommitdiff
path: root/Lib/asyncio/tasks.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-11-17 12:02:44 -0500
committerYury Selivanov <yselivanov@sprymix.com>2015-11-17 12:02:44 -0500
commitcfcc2bdcb2e721050fc0ddbdafd2f6452b845a24 (patch)
tree88b40b0840530dfb906397090b5ab061a9793f55 /Lib/asyncio/tasks.py
parent6019c8ced03fcb7acde715bf39aea18d1e44cba8 (diff)
parent7f324ba735dff39b7209717b646d3c96acd49ccf (diff)
downloadcpython-git-cfcc2bdcb2e721050fc0ddbdafd2f6452b845a24.tar.gz
Merge 3.5
Diffstat (limited to 'Lib/asyncio/tasks.py')
-rw-r--r--Lib/asyncio/tasks.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py
index 21940f624c..61f0645f97 100644
--- a/Lib/asyncio/tasks.py
+++ b/Lib/asyncio/tasks.py
@@ -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: