mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Replace obsolete alias tostring() with tobytes()
The tostring() method was renamed to tobytes() in Python 3.2 and has since been deprecated and removed in Python 3.9.
This commit is contained in:
parent
5c8e92e8c4
commit
5d22453ed3
@ -79,7 +79,7 @@ class LocaTable(UnknownTable):
|
||||
|
||||
if sys.byteorder != "big":
|
||||
vals.byteswap()
|
||||
self.raw = vals.tostring()
|
||||
self.raw = vals.tobytes()
|
||||
subset = update
|
||||
|
||||
def dump_glyphs(self, sfnt):
|
||||
|
Loading…
x
Reference in New Issue
Block a user