Fix TempMbox.saveas() to unregister the right file from _stale
This commit is contained in:
parent
e5ee9b98c1
commit
9ff7774aba
|
@ -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."""
|
||||||
|
|
Loading…
Reference in New Issue