summaryrefslogtreecommitdiffstats
path: root/module/plugins/captcha/captcha.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-05 17:06:22 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-05 17:06:22 +0200
commit2a5ff9ce8b025336cccdd7dde1260a7255efc683 (patch)
tree27f345bc1af3f71e2ff200fa3a0397fbffce85d6 /module/plugins/captcha/captcha.py
parentRemove old Ev0InFetcher hook (diff)
downloadpyload-2a5ff9ce8b025336cccdd7dde1260a7255efc683.tar.xz
Fix pillow import header
Diffstat (limited to 'module/plugins/captcha/captcha.py')
-rw-r--r--module/plugins/captcha/captcha.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/captcha/captcha.py b/module/plugins/captcha/captcha.py
index cc07f50cf..7d6ff264f 100644
--- a/module/plugins/captcha/captcha.py
+++ b/module/plugins/captcha/captcha.py
@@ -2,11 +2,11 @@
from __future__ import with_statement
-import GifImagePlugin
-import Image
-import JpegImagePlugin
-import PngImagePlugin
-import TiffImagePlugin
+try:
+ from PIL import Image, GifImagePlugin, JpegImagePlugin, PngImagePlugin, TiffImagePlugin
+except ImportError:
+ import Image, GifImagePlugin, JpegImagePlugin, PngImagePlugin, TiffImagePlugin
+
import logging
import os
import subprocess