Fix TempMbox.saveas() to unregister the right file from _stale

This commit is contained in:
Nikolaus Schulz 2010-07-17 02:41:05 +02:00
parent e5ee9b98c1
commit 9ff7774aba
1 changed files with 1 additions and 1 deletions

View File

@ -564,7 +564,7 @@ class TempMbox:
"""Rename this temporary mbox file to the given name, making it """Rename this temporary mbox file to the given name, making it
permanent. Emergency use only.""" permanent. Emergency use only."""
os.rename(self.mbox_file_name, filename) os.rename(self.mbox_file_name, filename)
_stale.temp_mboxes.remove(retain.mbox_file_name) _stale.temp_mboxes.remove(self.mbox_file_name)
def remove(self): def remove(self):
"""Delete the temporary mbox file.""" """Delete the temporary mbox file."""