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
@ -23,7 +23,10 @@ from sphinx.util.smartypants import sphinx_smarty_pants
|
|||||||
try:
|
try:
|
||||||
from PIL import Image # check for the Python Imaging Library
|
from PIL import Image # check for the Python Imaging Library
|
||||||
except ImportError:
|
except ImportError:
|
||||||
Image = None
|
try:
|
||||||
|
import Image
|
||||||
|
except ImportError:
|
||||||
|
Image = None
|
||||||
|
|
||||||
|
|
||||||
class HTMLWriter(Writer):
|
class HTMLWriter(Writer):
|
||||||
|
Loading…
Reference in New Issue
Block a user