Use dict literals. (#5080)

This commit is contained in:
Mads Jensen 2019-12-02 15:02:30 +01:00 committed by Alex Gaynor
parent 9dc710e65a
commit 1340c0080c
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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"):