mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
ASN.1: WIP: amend/squash: remove erroneous _ to - swap:
The keys the - and _ swap was being attempted in in this spot were not structural fields in the ASN.1 definitions, so they should not be tinkered with. Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
This commit is contained in:
parent
444d3329cb
commit
2dbb065c2c
1 changed files with 1 additions and 1 deletions
|
|
@ -664,7 +664,7 @@ def _listlike_dict_to_pyasn1(data, datatype):
|
|||
|
||||
i = 0
|
||||
for key in data:
|
||||
key = key.replace('_', '-') # ASN.1 uses - instead of _ in var names.
|
||||
# key = key.replace('_', '-') # ASN.1 uses - instead of _ in var names.
|
||||
datum = {names_in_component[0]: key, names_in_component[1]: data[key]}
|
||||
|
||||
debug('In conversion of list-like dict to type ' + str(datatype) + ', '
|
||||
|
|
|
|||
Loading…
Reference in a new issue