mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00: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