Fix import of Pillow in modules
This commit is contained in:
parent
74f15059e9
commit
1310939fe0
3 changed files with 3 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ import hashlib
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import Image
|
from PIL import Image
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise ImportError('Please install python-imaging')
|
raise ImportError('Please install python-imaging')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
import time
|
import time
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import Image
|
from PIL import Image
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise ImportError('Please install python-imaging')
|
raise ImportError('Please install python-imaging')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
import hashlib
|
import hashlib
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import Image
|
from PIL import Image
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise ImportError('Please install python-imaging')
|
raise ImportError('Please install python-imaging')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue