From aff6eccec521fbdfd3e76d593a2d04cd920d1c40 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Fri, 8 Mar 2013 13:30:41 -0800 Subject: [PATCH] Use relative import for _imaging --- PIL/Image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/Image.py b/PIL/Image.py index 5d7331823..98de46cb0 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -53,7 +53,7 @@ try: # the "open" function to identify files, but you cannot load # them. Note that other modules should not refer to _imaging # directly; import Image and use the Image.core variable instead. - import _imaging as core + from . import _imaging as core except ImportError as v: core = _imaging_not_installed() if str(v)[:20] == "Module use of python" and warnings: