diff options
author | Ilya Etingof <ietingof@redhat.com> | 2017-04-21 10:02:29 +0200 |
---|---|---|
committer | Ilya Etingof <ietingof@redhat.com> | 2017-04-21 10:02:29 +0200 |
commit | 1967b4af0e38506d4c1cdaf56f85d74e51927978 (patch) | |
tree | b92de512894d6c80defc438859bbbbdfb5776b68 | |
parent | 6fb2b5ddc59ac08649bb5a68a2f82e59f165b04d (diff) | |
download | pyasn1-git-1967b4af0e38506d4c1cdaf56f85d74e51927978.tar.gz |
quick fix to OctetString.prettyOut on Py3
-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 911eb65..595192a 100644 --- a/pyasn1/type/univ.py +++ b/pyasn1/type/univ.py @@ -1105,7 +1105,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 octets.str2octs('0x' + ''.join(('%.2x' % x for x in numbers))) else: try: return value.decode(self._encoding) |