We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a7a9d2 commit e1b24b8Copy full SHA for e1b24b8
binascii/binascii.py
@@ -4,7 +4,7 @@ def unhexlify(data):
4
if len(data) % 2 != 0:
5
raise Exception("Odd-length string")
6
7
- return b''.join([ int(data[i:i+2], 16).to_bytes(1) for i in range(0, len(data), 2) ])
+ return bytes([ int(data[i:i+2], 16) for i in range(0, len(data), 2) ])
8
9
b2a_hex = hexlify
10
a2b_hex = unhexlify
0 commit comments