Fix docstring typo in concurrent.futures.Future
This commit is contained in:
parent
a8e59feeb5
commit
6a56b8ab9c
|
@ -331,7 +331,7 @@ class Future(object):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def cancelled(self):
|
def cancelled(self):
|
||||||
"""Return True if the future has cancelled."""
|
"""Return True if the future was cancelled."""
|
||||||
with self._condition:
|
with self._condition:
|
||||||
return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]
|
return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue