diff --git a/CHANGES b/CHANGES index 1fbdd0be5..2ab38c862 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,8 @@ Release 1.0.7 (in development) ============================== +* #599: Import PIL as ``from PIL import Image``. + * #558: Fix longtables with captions in LaTeX output. * Make token references work as hyperlinks again in LaTeX output. diff --git a/sphinx/writers/html.py b/sphinx/writers/html.py index f1c4d596d..85c653602 100644 --- a/sphinx/writers/html.py +++ b/sphinx/writers/html.py @@ -21,7 +21,7 @@ from sphinx.locale import admonitionlabels, versionlabels, _ from sphinx.util.smartypants import sphinx_smarty_pants try: - import Image # check for the Python Imaging Library + from PIL import Image # check for the Python Imaging Library except ImportError: Image = None