]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-120157: Remove unused code in concurrent.future (gh-120187)
authorClinton <pygeek@users.noreply.github.com>
Fri, 7 Jun 2024 07:39:19 +0000 (03:39 -0400)
committerGitHub <noreply@github.com>
Fri, 7 Jun 2024 07:39:19 +0000 (16:39 +0900)
Lib/concurrent/futures/_base.py
Misc/NEWS.d/next/Library/2024-06-07-02-00-31.gh-issue-120157.HnWcF9.rst [new file with mode: 0644]

index 6742a07753c9217802f8a267f20e7fe6ffc28fb6..707fcdfde79acdb41aa00884ee0ebbb4eb90b887 100644 (file)
@@ -23,14 +23,6 @@ CANCELLED = 'CANCELLED'
 CANCELLED_AND_NOTIFIED = 'CANCELLED_AND_NOTIFIED'
 FINISHED = 'FINISHED'
 
-_FUTURE_STATES = [
-    PENDING,
-    RUNNING,
-    CANCELLED,
-    CANCELLED_AND_NOTIFIED,
-    FINISHED
-]
-
 _STATE_TO_DESCRIPTION_MAP = {
     PENDING: "pending",
     RUNNING: "running",
diff --git a/Misc/NEWS.d/next/Library/2024-06-07-02-00-31.gh-issue-120157.HnWcF9.rst b/Misc/NEWS.d/next/Library/2024-06-07-02-00-31.gh-issue-120157.HnWcF9.rst
new file mode 100644 (file)
index 0000000..3e90512
--- /dev/null
@@ -0,0 +1 @@
+Remove unused constant ``concurrent.futures._base._FUTURE_STATES`` in :mod:`concurrent.futures`. Patch by Clinton Christian (pygeek).