Commit 36e72172 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

modify import path of PIL.Image for pillow.

parent 1c9788f4
import Image
from PIL import Image
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
import transaction
from zLOG import LOG,INFO,ERROR
......
16
\ No newline at end of file
17
\ No newline at end of file
......@@ -40,12 +40,7 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase,\
from Products.ERP5Type.tests.utils import FileUpload, createZODBPythonScript
from Products.ERP5.Document.Document import ConversionError
try:
from PIL import Image
except ImportError:
# When the PIL eggs is developed it seems to use an different
# way to import it.
import Image
from PIL import Image
LANGUAGE_LIST = ('en', 'fr', 'de', 'bg',)
IMAGE_COMPARE_TOLERANCE = 800
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment