mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
gh-101341: Remove unncessary enum._power_of_two function (gh-101342)
This commit is contained in:
parent
b5c4d6064c
commit
8cef9c0f92
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user