aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMads Jensen <mje@inducks.org>2019-12-02 15:02:30 +0100
committerAlex Gaynor <alex.gaynor@gmail.com>2019-12-02 08:02:30 -0600
commit1340c0080c750867297b3f20bbecbad707c18157 (patch)
tree55b520c06ee4e1c56b3aedbf9f61c781f092c42f /src
parent9dc710e65ae08de8ad510a985ad1258aa76a26b3 (diff)
downloadcryptography-1340c0080c750867297b3f20bbecbad707c18157.tar.gz
cryptography-1340c0080c750867297b3f20bbecbad707c18157.tar.bz2
cryptography-1340c0080c750867297b3f20bbecbad707c18157.zip
Use dict literals. (#5080)
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509/extensions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py
index f60075a8..ad90e9b7 100644
--- a/src/cryptography/x509/extensions.py
+++ b/src/cryptography/x509/extensions.py
@@ -948,7 +948,7 @@ class TLSFeatureType(Enum):
status_request_v2 = 17
-_TLS_FEATURE_TYPE_TO_ENUM = dict((x.value, x) for x in TLSFeatureType)
+_TLS_FEATURE_TYPE_TO_ENUM = {x.value: x for x in TLSFeatureType}
@utils.register_interface(ExtensionType)