Merge pull request #306 from mjpieters/master

Fix for #304: test for `str`, not `"utf-8"`.
This commit is contained in:
Alex Clark ☺ 2013-07-25 10:53:13 -07:00
commit 7fe5fe6dbb

View File

@ -261,7 +261,7 @@ def load_path(filename):
"Load a font file, searching along the Python path."
for dir in sys.path:
if isDirectory(dir):
if not isinstance(filename, "utf-8"):
if not isinstance(filename, str):
if bytes is str:
filename = filename.encode("utf-8")
else: