diff options
author | Ilya Etingof <etingof@gmail.com> | 2018-12-29 20:49:34 +0100 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2018-12-29 20:49:34 +0100 |
commit | 19f1cf536da6305c4dfab65a1b6ac269dab6c186 (patch) | |
tree | be3fb103320702698fe6f49f1bf99873bbebd859 | |
parent | d7a502ff69505849004185f5214ac51b52a145eb (diff) | |
download | pyasn1-19f1cf536da6305c4dfab65a1b6ac269dab6c186.tar.gz |
Fix encoder debugging under Py2
-rw-r--r-- | pyasn1/codec/ber/encoder.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pyasn1/codec/ber/encoder.py b/pyasn1/codec/ber/encoder.py index 142e167..485811d 100644 --- a/pyasn1/codec/ber/encoder.py +++ b/pyasn1/codec/ber/encoder.py @@ -114,14 +114,15 @@ class AbstractItemEncoder(object): header = self.encodeTag(singleTag, isConstructed) if LOG: - LOG('encoded %stag %s into %s' % (isConstructed and 'constructed ' or '', - singleTag, debug.hexdump(header))) + LOG('encoded %stag %s into %s' % ( + isConstructed and 'constructed ' or '', + singleTag, debug.hexdump(ints2octs(header)))) header += self.encodeLength(len(substrate), defModeOverride) if LOG: LOG('encoded %s octets (tag + payload) into %s' % ( - len(substrate), debug.hexdump(header))) + len(substrate), debug.hexdump(ints2octs(header)))) if isOctets: substrate = ints2octs(header) + substrate |