mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	check prior fp result, do not use if False
This commit is contained in:
		
							parent
							
								
									6de118abd3
								
							
						
					
					
						commit
						88be36c27a
					
				| 
						 | 
					@ -1164,7 +1164,7 @@ class TiffImageFile(ImageFile.ImageFile):
 | 
				
			||||||
            if DEBUG:
 | 
					            if DEBUG:
 | 
				
			||||||
                print("have getvalue. just sending in a string from getvalue")
 | 
					                print("have getvalue. just sending in a string from getvalue")
 | 
				
			||||||
            n, err = decoder.decode(self.fp.getvalue())
 | 
					            n, err = decoder.decode(self.fp.getvalue())
 | 
				
			||||||
        elif hasattr(self.fp, "fileno"):
 | 
					        elif fp:
 | 
				
			||||||
            # we've got a actual file on disk, pass in the fp.
 | 
					            # we've got a actual file on disk, pass in the fp.
 | 
				
			||||||
            if DEBUG:
 | 
					            if DEBUG:
 | 
				
			||||||
                print("have fileno, calling fileno version of the decoder.")
 | 
					                print("have fileno, calling fileno version of the decoder.")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user