From: Yiannis Hadjicharalambous Date: Mon, 2 May 2022 15:05:26 +0000 (+0100) Subject: concurrent.futures: Fix typo in docstring (#92121) X-Git-Tag: v3.11.0b1~134 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b11243e85e020ed2f524bdd83c339faf11ef03d4;p=thirdparty%2FPython%2Fcpython.git concurrent.futures: Fix typo in docstring (#92121) --- diff --git a/Lib/concurrent/futures/_base.py b/Lib/concurrent/futures/_base.py index 706a4f2c09d1..d7e7e41967cc 100644 --- a/Lib/concurrent/futures/_base.py +++ b/Lib/concurrent/futures/_base.py @@ -379,7 +379,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]