Skip to content

Commit

Permalink
pythongh-101341: Remove unncessary enum._power_of_two function (pytho…
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 authored and mdboom committed Jan 31, 2023
1 parent 3db8600 commit cada1de
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 cada1de

Please sign in to comment.