mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-06 21:40:09 +03:00
Fix for Python 3
This commit is contained in:
parent
6cfc2e0d98
commit
8cbe60f816
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user