mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 22:23:25 +02:00
...
This commit is contained in:
parent
8415c7fd79
commit
68632c1853
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue