1
1
mirror of https://github.com/i-tu/Hasklig.git synced 2024-10-05 14:47:22 +03:00

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

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