1. Luke Plant
  2. sphinx

Commits

Georg Brandl  committed 645a650

#599: Import PIL as ``from PIL import Image``.

  • Participants
  • Parent commits b18f893
  • Branches default

Comments (0)

Files changed (2)

File CHANGES

View file
 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.

File sphinx/writers/html.py

View file
 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