summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-11-01 06:31:56 -0500
committerNed Batchelder <ned@nedbatchelder.com>2015-11-01 06:31:56 -0500
commitbbfb0bfd5f4c482696d813b3e5989150ce8b7a8d (patch)
treea43b553eaebe6c6a1c8306dee49bbabfe1604881
parent13ffa8f66a2423ac93e2fc7c1eecfd90d57d9b2d (diff)
downloadpython-coveragepy-git-bbfb0bfd5f4c482696d813b3e5989150ce8b7a8d.tar.gz
Oops, hex in py3.5 wasn't quite right
-rw-r--r--lab/show_pyc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lab/show_pyc.py b/lab/show_pyc.py
index 87736168..4eaa5131 100644
--- a/lab/show_pyc.py
+++ b/lab/show_pyc.py
@@ -78,11 +78,11 @@ def show_code(code, indent='', number=None):
def show_hex(label, h, indent):
h = binascii.hexlify(h)
if len(h) < 60:
- print("%s%s %s" % (indent, label, h))
+ print("%s%s %s" % (indent, label, h.decode('ascii')))
else:
print("%s%s" % (indent, label))
for i in range(0, len(h), 60):
- print("%s %s" % (indent, h[i:i+60]))
+ print("%s %s" % (indent, h[i:i+60].decode('ascii')))
def flag_words(flags, flag_defs):
words = []