summaryrefslogtreecommitdiffstats
path: root/Lib/enum.py
diff options
context:
space:
mode:
authorAlexandru Mărășteanu <alexei@users.noreply.github.com>2022-08-30 18:11:44 (GMT)
committerGitHub <noreply@github.com>2022-08-30 18:11:44 (GMT)
commit0ed778835d34bc1f39d2c6cdbc0c1709f6bcfd61 (patch)
tree30e5ed320372a5d705b156f6b3eb5de335e575be /Lib/enum.py
parent13c309f1101dc86ca0138f239d45cb009d0e898d (diff)
downloadcpython-0ed778835d34bc1f39d2c6cdbc0c1709f6bcfd61.zip
cpython-0ed778835d34bc1f39d2c6cdbc0c1709f6bcfd61.tar.gz
cpython-0ed778835d34bc1f39d2c6cdbc0c1709f6bcfd61.tar.bz2
gh-95149: Enhance `http.HTTPStatus` with properties that indicate the HTTP status category (GH-95453)
Diffstat (limited to 'Lib/enum.py')
-rw-r--r--Lib/enum.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/enum.py b/Lib/enum.py
index 8ef6958..e7375e1 100644
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -1887,7 +1887,7 @@ def _test_simple_enum(checked_enum, simple_enum):
else:
checked_value = checked_dict[key]
simple_value = simple_dict[key]
- if callable(checked_value):
+ if callable(checked_value) or isinstance(checked_value, bltns.property):
continue
if key == '__doc__':
# remove all spaces/tabs