Skip to content

Commit 197f3ec

Browse files
[3.14] gh-136764: improve comment in enum.verify.__call__ (GH-136774) (GH-136841)
gh-136764: improve comment in enum.verify.__call__ (GH-136774) (cherry picked from commit 6a1c93a) Co-authored-by: Saurav Singh <sauravsinghshakya@yahoo.com>
1 parent 4606b40 commit 197f3ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1965,7 +1965,7 @@ def __call__(self, enumeration):
19651965
if 2**i not in values:
19661966
missing.append(2**i)
19671967
elif enum_type == 'enum':
1968-
# check for powers of one
1968+
# check for missing consecutive integers
19691969
for i in range(low+1, high):
19701970
if i not in values:
19711971
missing.append(i)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy