summaryrefslogtreecommitdiff
path: root/lab
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
commitce4271eeb4dc13f5c2f7847eedb5616f0f74f0c7 (patch)
treebdbf98be99cf8939324adbc10c58c8e55afb0e5e /lab
parent77fbbbb7b78024836acb97e40e3a0948cf9942f1 (diff)
downloadpython-coveragepy-ce4271eeb4dc13f5c2f7847eedb5616f0f74f0c7.tar.gz
Oops, hex in py3.5 wasn't quite right
Diffstat (limited to 'lab')
-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 8773616..4eaa513 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 = []