mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #920: rescue PIL packaging issue that allow import Image
without PIL
namespace.
Also closes #702.
This commit is contained in:
parent
dd84529c42
commit
99621d7a01
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user