Python3 fix

This commit is contained in:
Miguel Sousa 2019-06-10 00:31:13 -07:00 committed by Miguel Sousa
parent db570b60e6
commit 64860d297f
1 changed files with 2 additions and 2 deletions

View File

@ -147,9 +147,9 @@ def getFontFormat(fontFilePath):
header = f.read(256)
head = header[:4]
f.close()
if head == "OTTO":
if head == b"OTTO":
return "OTF"
elif head in ("\0\1\0\0", "true"):
elif head in (b"\0\1\0\0", b"true"):
return "TTF"
return None