diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-07-26 19:17:13 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2017-07-26 19:17:13 +0200 |
commit | c0202b8b16ea39658b23da562b01b13190a4145e (patch) | |
tree | db1beac587d9283d6f25b3ad448b71635b9979b1 /pyasn1/type | |
parent | 79f35de7850204eae3c1c31493b437b1549ff3eb (diff) | |
download | pyasn1-c0202b8b16ea39658b23da562b01b13190a4145e.tar.gz |
fix to BitString.prettyOut()
Diffstat (limited to 'pyasn1/type')
-rw-r--r-- | pyasn1/type/univ.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyasn1/type/univ.py b/pyasn1/type/univ.py index 038744e..59644c1 100644 --- a/pyasn1/type/univ.py +++ b/pyasn1/type/univ.py @@ -979,7 +979,7 @@ class OctetString(base.AbstractSimpleAsn1Item): numbers = tuple(value) for x in numbers: if x < 32 or x > 126: - return octets.octs2str('0x') + ''.join(('%.2x' % x for x in numbers)) + return '0x' + ''.join(('%.2x' % x for x in numbers)) else: try: return value.decode(self.encoding) |