mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-11-04 01:27:21 +01:00 
			
		
		
		
	Fixed a potential bug.
This commit is contained in:
		
							parent
							
								
									7de6d11a65
								
							
						
					
					
						commit
						cbba7c6115
					
				@ -192,8 +192,8 @@ class FlatfileMapping(MappingInterface):
 | 
			
		||||
 | 
			
		||||
    def add(self, s):
 | 
			
		||||
        line = self._joinLine(self.currentId, s)
 | 
			
		||||
        fd = file(self.filename, 'r+')
 | 
			
		||||
        try:
 | 
			
		||||
            fd = file(self.filename, 'r+')
 | 
			
		||||
            fd.seek(0, 2) # End.
 | 
			
		||||
            fd.write(line)
 | 
			
		||||
            return self.currentId
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user