summaryrefslogtreecommitdiff
path: root/Mailman/Mailbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Mailbox.py')
-rw-r--r--Mailman/Mailbox.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Mailman/Mailbox.py b/Mailman/Mailbox.py
index 4edad7e78..3eb47d6c3 100644
--- a/Mailman/Mailbox.py
+++ b/Mailman/Mailbox.py
@@ -40,8 +40,9 @@ class Mailbox(mailbox.UnixMailbox):
try:
self.fp.seek(-1, 2)
except IOError, e:
- if e.errno <> errno.EINVAL: raise
- # the file must be empty
+ # Assume the file is empty. We can't portably test the error code
+ # returned, since it differs per platform.
+ pass
else:
if self.fp.read(1) <> '\n':
self.fp.write('\n')