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:
Jakub Rembisz 2020-10-27 15:02:25 -04:00
parent 5c8e92e8c4
commit 5d22453ed3

View File

@ -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):