mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47:27 +03:00 
			
		
		
		
	Rename import_err to something more general
This commit is contained in:
		
							parent
							
								
									1256fb496e
								
							
						
					
					
						commit
						b27ef76468
					
				|  | @ -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 | ||||
|  |  | |||
|  | @ -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): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user