From 34a5311e1b6ecd03322bf82ab7972c4aedf43ba9 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Fri, 8 Mar 2013 13:47:41 -0800 Subject: [PATCH] Use relative import for _imagingagg --- PIL/ImageDraw.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/PIL/ImageDraw.py b/PIL/ImageDraw.py index a1f931cbe..7e7759be1 100644 --- a/PIL/ImageDraw.py +++ b/PIL/ImageDraw.py @@ -313,13 +313,11 @@ def getdraw(im=None, hints=None): handler = None if not hints or "nicest" in hints: try: - import _imagingagg - handler = _imagingagg + from . import _imagingagg as handler except ImportError: pass if handler is None: - from PIL import ImageDraw2 - handler = ImageDraw2 + from PIL import ImageDraw2 as handler if im: im = handler.Draw(im) return im, handler