mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-01 00:17:27 +03:00 
			
		
		
		
	Use relative import for _imagingagg
This commit is contained in:
		
							parent
							
								
									5820716eb3
								
							
						
					
					
						commit
						34a5311e1b
					
				|  | @ -313,13 +313,11 @@ def getdraw(im=None, hints=None): | |||
|     handler = None | ||||
|     if not hints or "nicest" in hints: | ||||
|         try: | ||||
|             import _imagingagg | ||||
|             handler = _imagingagg | ||||
|             from . import _imagingagg as handler | ||||
|         except ImportError: | ||||
|             pass | ||||
|     if handler is None: | ||||
|         from PIL import ImageDraw2 | ||||
|         handler = ImageDraw2 | ||||
|         from PIL import ImageDraw2 as handler | ||||
|     if im: | ||||
|         im = handler.Draw(im) | ||||
|     return im, handler | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user