1
0
Fork 0
mirror of https://git.code.sf.net/p/archivemail/code synced 2025-01-03 13:44:46 +00:00

Minor docstring/whitespace fixes

This commit is contained in:
Nikolaus Schulz 2009-12-30 22:01:03 +01:00
parent b9b2174c45
commit 0f2b04ff89

View file

@ -454,7 +454,7 @@ class Mbox(mailbox.UnixMailbox, LockableMboxMixin):
self.original_mtime)) self.original_mtime))
def get_size(self): def get_size(self):
"""Return the current size of the mbox file""" """Return the current size of the mbox file on disk"""
return os.path.getsize(self.mbox_file_name) return os.path.getsize(self.mbox_file_name)
def overwrite_with(self, mbox_filename): def overwrite_with(self, mbox_filename):
@ -489,7 +489,7 @@ class ArchiveMbox(LockableMboxMixin):
class TempMbox: class TempMbox:
"""An write-only temporary mbox. No locking methods.""" """A write-only temporary mbox. No locking methods."""
def __init__(self, prefix=tempfile.template): def __init__(self, prefix=tempfile.template):
"""Creates a temporary mbox file.""" """Creates a temporary mbox file."""
@ -565,6 +565,7 @@ class TempMbox:
os.remove(self.mbox_file_name) os.remove(self.mbox_file_name)
_stale.temp_mboxes.remove(self.mbox_file_name) _stale.temp_mboxes.remove(self.mbox_file_name)
class CompressedTempMbox(TempMbox): class CompressedTempMbox(TempMbox):
"""A compressed version of a TempMbox.""" """A compressed version of a TempMbox."""
@ -1055,7 +1056,7 @@ def archive(mailbox_name):
"""Archives a mailbox. """Archives a mailbox.
Arguments: Arguments:
mailbox_name -- the filename/dirname of the mailbox to be archived mailbox_name -- the filename/dirname/url of the mailbox to be archived
""" """
assert(mailbox_name) assert(mailbox_name)