mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-11 08:42:35 +03:00
Better import for _imagingft
This commit is contained in:
parent
1003e4f7ee
commit
089a04bce1
|
@ -36,9 +36,7 @@ class _imagingft_not_installed:
|
||||||
raise ImportError("The _imagingft C module is not installed")
|
raise ImportError("The _imagingft C module is not installed")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import _imagingft
|
from . import _imagingft as core
|
||||||
core = _imagingft
|
|
||||||
del _imagingft
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
core = _imagingft_not_installed()
|
core = _imagingft_not_installed()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user