diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2021-07-04 04:08:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-04 04:08:42 (GMT) |
commit | 9bf7c2d638a582af2444bc864feba13ab8957b68 (patch) | |
tree | a273f9feb6019ad8ce8675fe7142dd1e74d14538 /Lib/ast.py | |
parent | 000b9e803a7ec067da0a43f9a3fec16f1078215a (diff) | |
download | cpython-9bf7c2d638a582af2444bc864feba13ab8957b68.zip cpython-9bf7c2d638a582af2444bc864feba13ab8957b68.tar.gz cpython-9bf7c2d638a582af2444bc864feba13ab8957b68.tar.bz2 |
[3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010)
* [Enum] revert enum module to 3.9
Diffstat (limited to 'Lib/ast.py')
-rw-r--r-- | Lib/ast.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -27,7 +27,7 @@ import sys from _ast import * from contextlib import contextmanager, nullcontext -from enum import IntEnum, auto, _simple_enum +from enum import IntEnum, auto def parse(source, filename='<unknown>', mode='exec', *, @@ -636,8 +636,7 @@ class Param(expr_context): # We unparse those infinities to INFSTR. _INFSTR = "1e" + repr(sys.float_info.max_10_exp + 1) -@_simple_enum(IntEnum) -class _Precedence: +class _Precedence(IntEnum): """Precedence table that originated from python grammar.""" TUPLE = auto() |