Adding Python 3 support for StringIO

This commit is contained in:
Nicolas Pieuchot 2013-04-25 21:25:06 +02:00
parent f1c245c9c5
commit 6d8ba56c44

View File

@ -1,7 +1,11 @@
from tester import *
from PIL import Image
import StringIO
try:
from io import StringIO # python 3
except ImportError:
from StringIO import StringIO # python 2
try:
from PIL import ImageFont
ImageFont.core.getfont # check if freetype is available