asn1rt: 2nd attempt at fixing STRING interpretation in comment
This commit is contained in:
parent
3e0b832d4a
commit
4efc57b675
|
@ -286,7 +286,7 @@ Specific constraints attributes:
|
||||||
else:
|
else:
|
||||||
s = uint_to_bytes(self._val[0], self._val[1]).decode('ascii')
|
s = uint_to_bytes(self._val[0], self._val[1]).decode('ascii')
|
||||||
if is_printable(s):
|
if is_printable(s):
|
||||||
return ret + ' -- %r --' % s
|
return ret + ' -- %s --' % repr(s)[1:-1]
|
||||||
else:
|
else:
|
||||||
return ret
|
return ret
|
||||||
except Exception:
|
except Exception:
|
||||||
|
@ -1325,7 +1325,7 @@ Specific constraints attributes:
|
||||||
try:
|
try:
|
||||||
s = self._val.decode('ascii')
|
s = self._val.decode('ascii')
|
||||||
if is_printable(s):
|
if is_printable(s):
|
||||||
return ret + ' -- %r --' % s
|
return ret + ' -- %s --' % repr(s)[1:-1]
|
||||||
else:
|
else:
|
||||||
return ret
|
return ret
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Reference in New Issue