Skip to content

Commit 7e9f6fe

Browse files
authored
Merge pull request #388 from megies/mention_pillow
mention pillow when PIL is not found (instead of linking to long-dead PIL page)
2 parents 3235525 + f06458a commit 7e9f6fe

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)