Skip to content

Commit f06458a

Browse files
committed
mention pillow when PIL is not found
1 parent 3235525 commit f06458a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4020,7 +4020,9 @@ def warpimage(self,image="bluemarble",scale=None,**kwargs):
40204020
try:
40214021
import Image
40224022
except ImportError:
4023-
raise ImportError('warpimage method requires PIL (http://www.pythonware.com/products/pil)')
4023+
msg = ('warpimage method requires PIL '
4024+
'(http://pillow.readthedocs.io)')
4025+
raise ImportError(msg)
40244026

40254027
from matplotlib.image import pil_to_array
40264028
if self.celestial:

0 commit comments

Comments
 (0)