Skip to content

Commit 4d17048

Browse files
committed
replace "import Image" by more standard "from PIL import Image". closes scrapy#88
1 parent b7b2e7f commit 4d17048

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scrapy/contrib/pipeline/images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
import hashlib
1111
import urlparse
1212
import rfc822
13-
import Image
1413
from cStringIO import StringIO
1514
from collections import defaultdict
1615

1716
from twisted.internet import defer, threads
17+
from PIL import Image
1818

1919
from scrapy.xlib.pydispatch import dispatcher
2020
from scrapy import log

scrapy/tests/test_pipeline_images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
try:
10-
import Image
10+
from PIL import Image
1111
skip = False
1212
except ImportError, e:
1313
skip = True

0 commit comments

Comments
 (0)