mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Oops, Sjoerd was in a hurry. This patch from him fixes some length
math in the Chunk class.
This commit is contained in:
		
							parent
							
								
									8ea7bb8e78
								
							
						
					
					
						commit
						56b20595e6
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -61,6 +61,7 @@ def __init__(self, file, align = 1):
 | 
			
		|||
            self.chunksize = struct.unpack('>l', file.read(4))[0]
 | 
			
		||||
        except struct.error:
 | 
			
		||||
            raise EOFError
 | 
			
		||||
        self.chunksize = self.chunksize - 8 # subtract header
 | 
			
		||||
        self.size_read = 0
 | 
			
		||||
        self.offset = self.file.tell()
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue