diff options
author | Dong-hee Na <donghee.na@python.org> | 2023-01-28 02:08:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-28 02:08:08 (GMT) |
commit | 8cef9c0f92720f6810be1c74e00f611acb4b8b1e (patch) | |
tree | 18c005dff6eb3b1465a86b5c352a16ee07bf13cd | |
parent | b5c4d6064cc2ae7042d2dc7b533d74f6c4176a38 (diff) | |
download | cpython-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.py | 5 |
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( |