Skip to content

Commit 8cef9c0

Browse files
authored
gh-101341: Remove unncessary enum._power_of_two function (gh-101342)
1 parent b5c4d60 commit 8cef9c0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Lib/enum.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,11 +1565,6 @@ def unique(enumeration):
15651565
(enumeration, alias_details))
15661566
return enumeration
15671567

1568-
def _power_of_two(value):
1569-
if value < 1:
1570-
return False
1571-
return value == 2 ** _high_bit(value)
1572-
15731568
def _dataclass_repr(self):
15741569
dcf = self.__dataclass_fields__
15751570
return ', '.join(

0 commit comments

Comments
 (0)