Better import for _imagingft

This commit is contained in:
Christoph Gohlke 2013-03-08 13:36:32 -08:00
parent 1003e4f7ee
commit 089a04bce1

View File

@ -36,9 +36,7 @@ class _imagingft_not_installed:
raise ImportError("The _imagingft C module is not installed")
try:
import _imagingft
core = _imagingft
del _imagingft
from . import _imagingft as core
except ImportError:
core = _imagingft_not_installed()