Skip to content

Commit

Permalink
gh-101341: Remove unncessary enum._power_of_two function (gh-101342)
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Jan 28, 2023
1 parent b5c4d60 commit 8cef9c0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Lib/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8cef9c0

Please sign in to comment.