mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Merge pull request #13 from wiredfool/pr_1499
Removed more closed source PIL plus
This commit is contained in:
		
						commit
						5b408b6d44
					
				| 
						 | 
					@ -22,13 +22,7 @@ if sys.platform not in ["win32", "darwin"]:
 | 
				
			||||||
    raise ImportError("ImageGrab is OS X and Windows only")
 | 
					    raise ImportError("ImageGrab is OS X and Windows only")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if sys.platform == "win32":
 | 
					if sys.platform == "win32":
 | 
				
			||||||
    try:
 | 
					 | 
				
			||||||
        # built-in driver (1.1.3 and later)
 | 
					 | 
				
			||||||
    grabber = Image.core.grabscreen
 | 
					    grabber = Image.core.grabscreen
 | 
				
			||||||
    except AttributeError:
 | 
					 | 
				
			||||||
        # stand-alone driver (pil plus)
 | 
					 | 
				
			||||||
        import _grabscreen
 | 
					 | 
				
			||||||
        grabber = _grabscreen.grab
 | 
					 | 
				
			||||||
elif sys.platform == "darwin":
 | 
					elif sys.platform == "darwin":
 | 
				
			||||||
    import os
 | 
					    import os
 | 
				
			||||||
    import tempfile
 | 
					    import tempfile
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user