From 5b540a0451fbf845a316040fe0d76c4ea8d2b92d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Nowotka?= Date: Thu, 25 Jul 2013 18:15:01 +0100 Subject: [PATCH] Update ImageFont.py --- PIL/ImageFont.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/ImageFont.py b/PIL/ImageFont.py index 5851c90fc..fe25c8575 100644 --- a/PIL/ImageFont.py +++ b/PIL/ImageFont.py @@ -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 isinstance(filename, str): if bytes is str: filename = filename.encode("utf-8") else: