diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2021-04-20 02:12:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 02:12:24 (GMT) |
commit | 503cdc7c124cebbd777008bdf7bd9aa666b25f07 (patch) | |
tree | ed9e0d1622622b1c37940d312de7d6e679bc8db2 /Lib/pstats.py | |
parent | dbac8f40e81eb0a29dc833e6409a1abf47467da6 (diff) | |
download | cpython-503cdc7c124cebbd777008bdf7bd9aa666b25f07.zip cpython-503cdc7c124cebbd777008bdf7bd9aa666b25f07.tar.gz cpython-503cdc7c124cebbd777008bdf7bd9aa666b25f07.tar.bz2 |
Revert "bpo-38659: [Enum] add _simple_enum decorator (GH-25285)" (GH-25476)
This reverts commit dbac8f40e81eb0a29dc833e6409a1abf47467da6.
Diffstat (limited to 'Lib/pstats.py')
-rw-r--r-- | Lib/pstats.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py index e77459d..0f93ae0 100644 --- a/Lib/pstats.py +++ b/Lib/pstats.py @@ -26,15 +26,14 @@ import time import marshal import re -from enum import StrEnum, _simple_enum +from enum import Enum from functools import cmp_to_key from dataclasses import dataclass from typing import Dict __all__ = ["Stats", "SortKey", "FunctionProfile", "StatsProfile"] -@_simple_enum(StrEnum) -class SortKey: +class SortKey(str, Enum): CALLS = 'calls', 'ncalls' CUMULATIVE = 'cumulative', 'cumtime' FILENAME = 'filename', 'module' |