aboutsummaryrefslogtreecommitdiff
path: root/projects/cli-test
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2020-05-26 15:18:35 -0400
committerRob Austein <sra@hactrn.net>2020-05-26 15:18:35 -0400
commit6d797bffbd7571df98198df26977a39b86630ac7 (patch)
treed270af05d27bf746b4f4ba30a98542d93002f84f /projects/cli-test
parentf948d674351a2ca87d33c0e0d8558cbbb2f59682 (diff)
Wow, python-version-independent hexadecimal is painful
Diffstat (limited to 'projects/cli-test')
-rwxr-xr-xprojects/cli-test/filetransfer2
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/cli-test/filetransfer b/projects/cli-test/filetransfer
index 147f081..809c6b8 100755
--- a/projects/cli-test/filetransfer
+++ b/projects/cli-test/filetransfer
@@ -79,7 +79,7 @@ def parse_args():
def _write(dst, data):
dst.write(data)
if len(data) == 4:
- print(("Wrote 0x{!s}".format(hexlify(data))))
+ print(("Wrote 0x{!s}".format(hexlify(data).decode("ascii"))))
else:
print(("Wrote {!r}".format(data)))