From 6999860786c3f40bcd341bddc980980664c7b680 Mon Sep 17 00:00:00 2001 From: Alex Clark Date: Fri, 8 Mar 2013 18:43:52 -0500 Subject: [PATCH] Revert "Use relative import for _imagingagg" This reverts commit 34a5311e1b6ecd03322bf82ab7972c4aedf43ba9. --- PIL/ImageDraw.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PIL/ImageDraw.py b/PIL/ImageDraw.py index b8cad3eb3..a1f931cbe 100644 --- a/PIL/ImageDraw.py +++ b/PIL/ImageDraw.py @@ -313,11 +313,13 @@ def getdraw(im=None, hints=None): handler = None if not hints or "nicest" in hints: try: - from PIL import _imagingagg as handler + import _imagingagg + handler = _imagingagg except ImportError: pass if handler is None: - from PIL import ImageDraw2 as handler + from PIL import ImageDraw2 + handler = ImageDraw2 if im: im = handler.Draw(im) return im, handler