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