mirror of
https://github.com/python/cpython.git
synced 2025-09-18 14:40:43 +00:00
Fix docstring typo in concurrent.futures.Future
This commit is contained in:
parent
71027979b7
commit
c9d504fc29
1 changed files with 1 additions and 1 deletions
|
@ -332,7 +332,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…
Add table
Add a link
Reference in a new issue