mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-03 23:15:52 +00:00
Python <3.11 compat fix
This commit is contained in:
parent
b48e8b23ea
commit
a294c81f0d
@ -30,7 +30,7 @@ def next_byte():
|
||||
if is_hex:
|
||||
pair = f.read(2)
|
||||
assert pair is not None and len(pair) == 2
|
||||
b = int(pair, 16).to_bytes()
|
||||
b = int(pair, 16).to_bytes(1, 'big')
|
||||
else:
|
||||
b = f.read(1)
|
||||
assert b is not None and len(b) == 1
|
||||
|
Loading…
Reference in New Issue
Block a user