mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
No need to makeBackupIfSmaller in databases. That's more for configuration files.
This commit is contained in:
parent
e1a8aab4f7
commit
4624115909
@ -262,7 +262,8 @@ class FlatfileMapping(MappingInterface):
|
||||
|
||||
def vacuum(self):
|
||||
infd = file(self.filename)
|
||||
outfd = utils.transactionalFile(self.filename)
|
||||
outfd = utils.transactionalFile(self.filename,
|
||||
makeBackupIfSmaller=False)
|
||||
outfd.write(infd.readline()) # First line, nextId.
|
||||
for line in infd:
|
||||
if not line.startswith('-'):
|
||||
|
Loading…
Reference in New Issue
Block a user