]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101341: Remove unncessary enum._power_of_two function (gh-101342)
authorDong-hee Na <donghee.na@python.org>
Sat, 28 Jan 2023 02:08:08 +0000 (11:08 +0900)
committerGitHub <noreply@github.com>
Sat, 28 Jan 2023 02:08:08 +0000 (11:08 +0900)
Lib/enum.py

index 4658393d756e07b171c21f1b1e064065a99486ef..adb61519abe942b0f704d9cf084698f7143e48c6 100644 (file)
@@ -1565,11 +1565,6 @@ def unique(enumeration):
                 (enumeration, alias_details))
     return enumeration
 
-def _power_of_two(value):
-    if value < 1:
-        return False
-    return value == 2 ** _high_bit(value)
-
 def _dataclass_repr(self):
     dcf = self.__dataclass_fields__
     return ', '.join(