From 1340c0080c750867297b3f20bbecbad707c18157 Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Mon, 2 Dec 2019 15:02:30 +0100 Subject: Use dict literals. (#5080) --- src/cryptography/x509/extensions.py | 2 +- tests/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 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) diff --git a/tests/utils.py b/tests/utils.py index 1362e906..ca3245b0 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -783,7 +783,7 @@ def load_nist_kbkdf_vectors(vector_data): tag.update({name.lower(): value.lower()}) elif line.startswith("COUNT="): - test_data = dict() + test_data = {} test_data.update(tag) vectors.append(test_data) elif line.startswith("L"): -- cgit v1.2.3