aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/strutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/strutils.py')
-rw-r--r--netlib/strutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/netlib/strutils.py b/netlib/strutils.py
index 9208f954..a51df886 100644
--- a/netlib/strutils.py
+++ b/netlib/strutils.py
@@ -146,7 +146,7 @@ def hexdump(s):
A generator of (offset, hex, str) tuples
"""
for i in range(0, len(s), 16):
- offset = "{:0=10x}".format(i).encode()
+ offset = "{:0=10x}".format(i)
part = s[i:i + 16]
x = " ".join("{:0=2x}".format(i) for i in six.iterbytes(part))
x = x.ljust(47) # 16*2 + 15