asn1rt: 2nd attempt at fixing STRING interpretation in comment

This commit is contained in:
p1-bmu 2021-06-09 14:51:21 +02:00
parent 3e0b832d4a
commit 4efc57b675
1 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ Specific constraints attributes:
else:
s = uint_to_bytes(self._val[0], self._val[1]).decode('ascii')
if is_printable(s):
return ret + ' -- %r --' % s
return ret + ' -- %s --' % repr(s)[1:-1]
else:
return ret
except Exception:
@ -1325,7 +1325,7 @@ Specific constraints attributes:
try:
s = self._val.decode('ascii')
if is_printable(s):
return ret + ' -- %r --' % s
return ret + ' -- %s --' % repr(s)[1:-1]
else:
return ret
except Exception: