mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Revert "bpo-38659: [Enum] add _simple_enum decorator (GH-25285)" (GH-25476)
This reverts commit dbac8f40e8.
This commit is contained in:
parent
dbac8f40e8
commit
503cdc7c12
20 changed files with 34 additions and 871 deletions
|
|
@ -1,10 +1,8 @@
|
|||
from enum import IntEnum, _simple_enum
|
||||
from enum import IntEnum
|
||||
|
||||
__all__ = ['HTTPStatus']
|
||||
|
||||
|
||||
@_simple_enum(IntEnum)
|
||||
class HTTPStatus:
|
||||
class HTTPStatus(IntEnum):
|
||||
"""HTTP status codes and reason phrases
|
||||
|
||||
Status codes from the following RFCs are all observed:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue