mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Only need to read 4 bytes
This commit is contained in:
		
							parent
							
								
									35e6cb1d09
								
							
						
					
					
						commit
						277d8123a4
					
				| 
						 | 
					@ -40,7 +40,7 @@ class BufrStubImageFile(ImageFile.StubImageFile):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        offset = self.fp.tell()
 | 
					        offset = self.fp.tell()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if not _accept(self.fp.read(8)):
 | 
					        if not _accept(self.fp.read(4)):
 | 
				
			||||||
            raise SyntaxError("Not a BUFR file")
 | 
					            raise SyntaxError("Not a BUFR file")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.fp.seek(offset)
 | 
					        self.fp.seek(offset)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user