From c865e2cf444cf438633207ac414d206d756f6a96 Mon Sep 17 00:00:00 2001 From: NotSoSuper Date: Sun, 18 Sep 2016 14:59:52 -0400 Subject: [PATCH] Python 3.0 fixes --- PIL/ImageFont.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PIL/ImageFont.py b/PIL/ImageFont.py index 46aeb7e33..17a5aa72d 100644 --- a/PIL/ImageFont.py +++ b/PIL/ImageFont.py @@ -313,6 +313,8 @@ def load_default(): from io import BytesIO import base64 f = ImageFont() + if sys.version_info < (3, 1): + base64.decodebytes = base64.decodestring f._load_pilfont_data( # courB08 BytesIO(base64.decodebytes(b'''