Commits

Takayuki Shimizukawa committed d2029b0

Closes #920: rescue PIL packaging issue that allow import `Image` without `PIL` namespace.
Also closes #702.

  • Participants
  • Parent commits 93ec7ea

Comments (0)

Files changed (1)

File sphinx/writers/html.py

 try:
     from PIL import Image        # check for the Python Imaging Library
 except ImportError:
-    Image = None
+    try:
+        import Image
+    except ImportError:
+        Image = None
 
 
 class HTMLWriter(Writer):