Import PIL modules from the PIL namespace to be Pillow-compatible
authorChristophe de Vienne <christophe@unlish.com>
Wed, 04 Jun 2014 23:02:06 +0200
changeset 9772 7d0d622c9bc9
parent 9770 112c884b2d8d
child 9773 71a45642b3d2
Import PIL modules from the PIL namespace to be Pillow-compatible Closes #3924726
web/captcha.py
--- a/web/captcha.py	Tue Jun 10 09:49:45 2014 +0200
+++ b/web/captcha.py	Wed Jun 04 23:02:06 2014 +0200
@@ -24,7 +24,7 @@
 from random import randint, choice
 from cStringIO import StringIO
 
-import Image, ImageFont, ImageDraw, ImageFilter
+from PIL import Image, ImageFont, ImageDraw, ImageFilter
 
 
 from time import time