mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	Better import of _imagingft
This commit is contained in:
		
							parent
							
								
									50878f5767
								
							
						
					
					
						commit
						4985d96d03
					
				|  | @ -36,9 +36,7 @@ class _imagingft_not_installed: | ||||||
|         raise ImportError("The _imagingft C module is not installed") |         raise ImportError("The _imagingft C module is not installed") | ||||||
| 
 | 
 | ||||||
| try: | try: | ||||||
|     import _imagingft |     import _imagingft as core | ||||||
|     core = _imagingft |  | ||||||
|     del _imagingft |  | ||||||
| except ImportError: | except ImportError: | ||||||
|     core = _imagingft_not_installed() |     core = _imagingft_not_installed() | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user