summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2023-01-28 02:08:08 (GMT)
committerGitHub <noreply@github.com>2023-01-28 02:08:08 (GMT)
commit8cef9c0f92720f6810be1c74e00f611acb4b8b1e (patch)
tree18c005dff6eb3b1465a86b5c352a16ee07bf13cd
parentb5c4d6064cc2ae7042d2dc7b533d74f6c4176a38 (diff)
downloadcpython-8cef9c0f92720f6810be1c74e00f611acb4b8b1e.zip
cpython-8cef9c0f92720f6810be1c74e00f611acb4b8b1e.tar.gz
cpython-8cef9c0f92720f6810be1c74e00f611acb4b8b1e.tar.bz2
gh-101341: Remove unncessary enum._power_of_two function (gh-101342)
-rw-r--r--Lib/enum.py5
1 files changed, 0 insertions, 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(