mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Use dict literals. (#5080)
This commit is contained in:
parent
9dc710e65a
commit
1340c0080c
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue