Fix for Python 3

This commit is contained in:
hugovk 2014-07-05 22:17:27 +03:00
parent 6cfc2e0d98
commit 8cbe60f816

View File

@ -134,7 +134,7 @@ class FontFile:
fp = open(os.path.splitext(filename)[0] + ".pil", "wb")
fp.write(b"PILfont2\n" + self.name + "\n" + "DATA\n")
fp.write(b"PILfont2\n" + self.name.encode('ascii') + b"\n" + b"DATA\n")
fp.write(data)