From 2dbb065c2c16641b558d1d5ff3da82152bb1e699 Mon Sep 17 00:00:00 2001 From: Sebastien Awwad Date: Fri, 26 Oct 2018 12:48:10 -0400 Subject: [PATCH] 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 --- tuf/encoding/asn1_convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuf/encoding/asn1_convert.py b/tuf/encoding/asn1_convert.py index 224e65af..bc38687a 100644 --- a/tuf/encoding/asn1_convert.py +++ b/tuf/encoding/asn1_convert.py @@ -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) + ', '