mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Merge pull request #104 from cgohlke/patch-2
Better import of _imagingft
This commit is contained in:
commit
03f06185ea
|
@ -36,9 +36,7 @@ class _imagingft_not_installed:
|
|||
raise ImportError("The _imagingft C module is not installed")
|
||||
|
||||
try:
|
||||
import _imagingft
|
||||
core = _imagingft
|
||||
del _imagingft
|
||||
import _imagingft as core
|
||||
except ImportError:
|
||||
core = _imagingft_not_installed()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user