mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Removed unnecessary load()
This commit is contained in:
		
							parent
							
								
									b6b362c807
								
							
						
					
					
						commit
						9192a33b38
					
				| 
						 | 
					@ -1730,7 +1730,6 @@ class Image:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if self.mode not in ("L", "LA", "P", "PA"):
 | 
					        if self.mode not in ("L", "LA", "P", "PA"):
 | 
				
			||||||
            raise ValueError("illegal image mode")
 | 
					            raise ValueError("illegal image mode")
 | 
				
			||||||
        self.load()
 | 
					 | 
				
			||||||
        if isinstance(data, ImagePalette.ImagePalette):
 | 
					        if isinstance(data, ImagePalette.ImagePalette):
 | 
				
			||||||
            palette = ImagePalette.raw(data.rawmode, data.palette)
 | 
					            palette = ImagePalette.raw(data.rawmode, data.palette)
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user