mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Fix leftover bytes not being represented in hex
This commit is contained in:
parent
68158d1053
commit
601483f210
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ class TLObject:
|
||||||
try:
|
try:
|
||||||
return cast(TLObject, objects[int.from_bytes(data.read(4), "little")]).read(data, *args)
|
return cast(TLObject, objects[int.from_bytes(data.read(4), "little")]).read(data, *args)
|
||||||
except KeyError as e:
|
except KeyError as e:
|
||||||
left = data.read()
|
left = data.read().hex()
|
||||||
|
|
||||||
left = [left[i:i + 64] for i in range(0, len(left), 64)]
|
left = [left[i:i + 64] for i in range(0, len(left), 64)]
|
||||||
left = [[left[i:i + 8] for i in range(0, len(left), 8)] for left in left]
|
left = [[left[i:i + 8] for i in range(0, len(left), 8)] for left in left]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue