Revert "Use relative import for _imagingagg"

This reverts commit 34a5311e1b.
This commit is contained in:
Alex Clark 2013-03-08 18:43:52 -05:00
parent de077c9d37
commit 6999860786

View File

@ -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