]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
concurrent.futures: Fix typo in docstring (GH-92121)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 May 2022 16:25:45 +0000 (09:25 -0700)
committerGitHub <noreply@github.com>
Mon, 2 May 2022 16:25:45 +0000 (09:25 -0700)
(cherry picked from commit b11243e85e020ed2f524bdd83c339faf11ef03d4)

Co-authored-by: Yiannis Hadjicharalambous <hadjicharalambous.yiannis@gmail.com>
Lib/concurrent/futures/_base.py

index 5c00f2edbe5482092656422a01ea87ccc635eb35..cf119ac6437aa2d43506a1e3b964035142aac144 100644 (file)
@@ -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]