summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-02 16:25:45 (GMT)
committerGitHub <noreply@github.com>2022-05-02 16:25:45 (GMT)
commit1a7867fc0c3913828157e23623381baa7625b626 (patch)
treeaf55a5a412035bbd648155ed212c772ce7996981
parent9b7cdfdf357fa819fd47f0ebe1c0e2010a5d4e31 (diff)
downloadcpython-1a7867fc0c3913828157e23623381baa7625b626.zip
cpython-1a7867fc0c3913828157e23623381baa7625b626.tar.gz
cpython-1a7867fc0c3913828157e23623381baa7625b626.tar.bz2
concurrent.futures: Fix typo in docstring (GH-92121)
(cherry picked from commit b11243e85e020ed2f524bdd83c339faf11ef03d4) Co-authored-by: Yiannis Hadjicharalambous <hadjicharalambous.yiannis@gmail.com>
-rw-r--r--Lib/concurrent/futures/_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/concurrent/futures/_base.py b/Lib/concurrent/futures/_base.py
index 5c00f2e..cf119ac 100644
--- a/Lib/concurrent/futures/_base.py
+++ b/Lib/concurrent/futures/_base.py
@@ -381,7 +381,7 @@ class Future(object):
return self._state == RUNNING
def done(self):
- """Return True of the future was cancelled or finished executing."""
+ """Return True if the future was cancelled or finished executing."""
with self._condition:
return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED]