mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
ddf9932f4c
commit
726ca75cc5
@ -66,6 +66,7 @@ def serialize(o, stream):
|
||||
if isinstance(o, float):
|
||||
stream.write_raw(pdf_float(o).encode('ascii'))
|
||||
elif isinstance(o, bool):
|
||||
# Must check bool before int as bools are subclasses of int
|
||||
stream.write_raw(b'true' if o else b'false')
|
||||
elif isinstance(o, (int, long)):
|
||||
stream.write_raw(icb(o))
|
||||
|
Loading…
x
Reference in New Issue
Block a user