From 8cef9c0f92720f6810be1c74e00f611acb4b8b1e Mon Sep 17 00:00:00 2001 From: Dong-hee Na Date: Sat, 28 Jan 2023 11:08:08 +0900 Subject: gh-101341: Remove unncessary enum._power_of_two function (gh-101342) --- Lib/enum.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Lib/enum.py b/Lib/enum.py index 4658393..adb6151 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -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( -- cgit v0.12