From 5b44aabf4decde441ff7ed70e9be1830298b457a Mon Sep 17 00:00:00 2001
From: Christoph Gohlke <cgohlke@uci.edu>
Date: Sat, 6 Jul 2013 14:59:27 -0700
Subject: [PATCH] Import Image from the PIL namespace

Fixes import error when using Pillow, a PIL fork with many bug fixes and Python 3 compatibility.
---
 examples/demo_mandelbrot.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/examples/demo_mandelbrot.py b/examples/demo_mandelbrot.py
index c6cd6d3a..eb53f416 100644
--- a/examples/demo_mandelbrot.py
+++ b/examples/demo_mandelbrot.py
@@ -108,8 +108,7 @@ calc_fractal = calc_fractal_opencl
 
 if __name__ == '__main__':
     import Tkinter as tk
-    import Image          # PIL
-    import ImageTk        # PIL
+    from PIL import Image, ImageTk
 
 
     class Mandelbrot(object):
-- 
GitLab