Rename import_err to something more general

This commit is contained in:
wiredfool 2014-04-08 23:42:34 -07:00
parent 1256fb496e
commit b27ef76468
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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):