mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +03:00
Revert "Use relative import for _imagingagg"
This reverts commit 34a5311e1b
.
This commit is contained in:
parent
de077c9d37
commit
6999860786
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user