Skip to content

Commit

Permalink
ASN.1: minor: add quotes around a datatype in an err string and
Browse files Browse the repository at this point in the history
remove commented-out pyasn1 imports.

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
  • Loading branch information
awwad committed Jan 8, 2019
1 parent 608a729 commit c25e314
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions tests/test_asn1_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@
# Dependency Imports
import asn1crypto as asn1
import asn1crypto.core as asn1_core
'''
import pyasn1
import pyasn1.type.univ as pyasn1_univ
import pyasn1.type.char as pyasn1_char
import pyasn1.codec.der.encoder as pyasn1_der_encoder
'''
# TUF Imports
import tuf
import tuf.log
Expand Down
4 changes: 2 additions & 2 deletions tuf/encoding/asn1_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,8 @@ def _structlike_dict_to_asn1(data, datatype):
continue
else:
raise tuf.exceptions.ASN1ConversionError(
'In conversion to "' + str(datatype) + '", expected to find key ' +
element_name_py + ' in input data, but did not. Keys in input '
'In conversion to "' + str(datatype) + '", expected to find key "' +
element_name_py + '" in input data, but did not. Keys in input '
'data: ' + str(data.keys()))

debug('In conversion of dict to type ' + str(datatype) + ', recursing '
Expand Down

0 comments on commit c25e314

Please sign in to comment.