mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 07:57:27 +03:00 
			
		
		
		
	Removed unreachable code
This commit is contained in:
		
							parent
							
								
									e9a6a96053
								
							
						
					
					
						commit
						560774e3e0
					
				|  | @ -200,7 +200,6 @@ class MorphOp(object): | ||||||
| 
 | 
 | ||||||
|         if image.mode != 'L': |         if image.mode != 'L': | ||||||
|             raise Exception('Image must be binary, meaning it must use mode L') |             raise Exception('Image must be binary, meaning it must use mode L') | ||||||
|             return |  | ||||||
|         outimage = Image.new(image.mode, image.size, None) |         outimage = Image.new(image.mode, image.size, None) | ||||||
|         count = _imagingmorph.apply( |         count = _imagingmorph.apply( | ||||||
|             bytes(self.lut), image.im.id, outimage.im.id) |             bytes(self.lut), image.im.id, outimage.im.id) | ||||||
|  | @ -217,7 +216,6 @@ class MorphOp(object): | ||||||
| 
 | 
 | ||||||
|         if image.mode != 'L': |         if image.mode != 'L': | ||||||
|             raise Exception('Image must be binary, meaning it must use mode L') |             raise Exception('Image must be binary, meaning it must use mode L') | ||||||
|             return |  | ||||||
|         return _imagingmorph.match(bytes(self.lut), image.im.id) |         return _imagingmorph.match(bytes(self.lut), image.im.id) | ||||||
| 
 | 
 | ||||||
|     def get_on_pixels(self, image): |     def get_on_pixels(self, image): | ||||||
|  | @ -228,7 +226,6 @@ class MorphOp(object): | ||||||
| 
 | 
 | ||||||
|         if image.mode != 'L': |         if image.mode != 'L': | ||||||
|             raise Exception('Image must be binary, meaning it must use mode L') |             raise Exception('Image must be binary, meaning it must use mode L') | ||||||
|             return |  | ||||||
|         return _imagingmorph.get_on_pixels(image.im.id) |         return _imagingmorph.get_on_pixels(image.im.id) | ||||||
| 
 | 
 | ||||||
|     def load_lut(self, filename): |     def load_lut(self, filename): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user