Closes #920: rescue PIL packaging issue that allow import Image without PIL namespace.

Also closes #702.
This commit is contained in:
Takayuki Shimizukawa 2012-11-07 07:42:44 +09:00
parent dd84529c42
commit 99621d7a01

View File

@ -22,6 +22,9 @@ from sphinx.util.smartypants import sphinx_smarty_pants
try:
from PIL import Image # check for the Python Imaging Library
except ImportError:
try:
import Image
except ImportError:
Image = None