Skip to content

Commit

Permalink
Merge pull request #306 from mjpieters/master
Browse files Browse the repository at this point in the history
Fix for #304: test for `str`, not `"utf-8"`.
  • Loading branch information
aclark4life committed Jul 25, 2013
2 parents a1682c7 + 97f1cd5 commit 7fe5fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PIL/ImageFont.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7fe5fe6

Please sign in to comment.