From 4985d96d03f09ebce11fc4e45a24de5f318ee266 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Wed, 13 Mar 2013 17:56:33 -0700 Subject: [PATCH] Better import of _imagingft --- PIL/ImageFont.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/PIL/ImageFont.py b/PIL/ImageFont.py index 97dafdd6a..8ec60fef9 100644 --- a/PIL/ImageFont.py +++ b/PIL/ImageFont.py @@ -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()