diff --git a/PIL/ImageCms.py b/PIL/ImageCms.py index c875712c1..363650250 100644 --- a/PIL/ImageCms.py +++ b/PIL/ImageCms.py @@ -89,8 +89,8 @@ try: except ImportError as ex: # Allow error import for doc purposes, but error out when accessing # anything in core. - from _util import import_err - _imagingcms = import_err(ex) + from _util import deferred_error + _imagingcms = deferred_error(ex) from PIL._util import isStringType core = _imagingcms diff --git a/PIL/_util.py b/PIL/_util.py index 761c258f1..eb5c2c242 100644 --- a/PIL/_util.py +++ b/PIL/_util.py @@ -15,7 +15,7 @@ else: def isDirectory(f): return isPath(f) and os.path.isdir(f) -class import_err(object): +class deferred_error(object): def __init__(self, ex): self.ex = ex def __getattr__(self, elt):