mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
8415c7fd79
commit
68632c1853
@ -39,7 +39,7 @@ def encode_number_as_hex(num):
|
||||
The bytes that follow are simply the hexadecimal representation of the
|
||||
number.
|
||||
'''
|
||||
num = bytes(hex(num)[2:])
|
||||
num = bytes(hex(num)[2:].upper())
|
||||
ans = bytearray(num)
|
||||
ans.insert(0, len(num))
|
||||
return bytes(ans)
|
||||
|
Loading…
x
Reference in New Issue
Block a user