mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	Merge pull request #108 from cgohlke/patch-6
Decode bytestr instead of str
This commit is contained in:
		
						commit
						ba213e5450
					
				|  | @ -630,7 +630,7 @@ class TiffImageFile(ImageFile.ImageFile): | |||
|             if Image.DEBUG: | ||||
|                 print ("have fileno, calling fileno version of the decoder.") | ||||
|             self.fp.seek(0) | ||||
|             n,e = d.decode("fpfp") # 4 bytes, otherwise the trace might error out | ||||
|             n,e = d.decode(b"fpfp") # 4 bytes, otherwise the trace might error out | ||||
|         elif hasattr(self.fp, "getvalue"): | ||||
|             # We've got a stringio like thing passed in. Yay for all in memory. | ||||
|             # The decoder needs the entire file in one shot, so there's not | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user