mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-17 10:44:45 +03:00
Python 3.0 fixes
This commit is contained in:
parent
6128f34c6d
commit
c865e2cf44
|
@ -313,6 +313,8 @@ def load_default():
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
import base64
|
import base64
|
||||||
f = ImageFont()
|
f = ImageFont()
|
||||||
|
if sys.version_info < (3, 1):
|
||||||
|
base64.decodebytes = base64.decodestring
|
||||||
f._load_pilfont_data(
|
f._load_pilfont_data(
|
||||||
# courB08
|
# courB08
|
||||||
BytesIO(base64.decodebytes(b'''
|
BytesIO(base64.decodebytes(b'''
|
||||||
|
|
Loading…
Reference in New Issue
Block a user