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:
Sebastien Awwad 2018-10-26 12:48:10 -04:00
parent 444d3329cb
commit 2dbb065c2c
No known key found for this signature in database
GPG key ID: BC0C6DEDD5E5CC03

View file

@ -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) + ', '