summaryrefslogtreecommitdiff
path: root/Mailman/MTA/Postfix.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-11-17 17:33:14 -0500
committerBarry Warsaw2007-11-17 17:33:14 -0500
commit02f3861eae46de1b6e580e257d25aa9a4c73a687 (patch)
tree06fafb751538ad0f3dcebbe02e8a06e8aa9f1f6b /Mailman/MTA/Postfix.py
parent12ace359ccceb507ac2e55c1333f63d3d92af6f7 (diff)
downloadmailman-02f3861eae46de1b6e580e257d25aa9a4c73a687.tar.gz
mailman-02f3861eae46de1b6e580e257d25aa9a4c73a687.tar.zst
mailman-02f3861eae46de1b6e580e257d25aa9a4c73a687.zip
Diffstat (limited to 'Mailman/MTA/Postfix.py')
-rw-r--r--Mailman/MTA/Postfix.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Mailman/MTA/Postfix.py b/Mailman/MTA/Postfix.py
index 268d2f325..c8ee211ea 100644
--- a/Mailman/MTA/Postfix.py
+++ b/Mailman/MTA/Postfix.py
@@ -257,7 +257,8 @@ def _do_create(mlist, textfile, func):
try:
fp = open(textfile, 'r+')
except IOError, e:
- if e.errno <> errno.ENOENT: raise
+ if e.errno <> errno.ENOENT:
+ raise
fp = open(textfile, 'w+')
try:
func(mlist, fp)
@@ -300,7 +301,8 @@ def _do_remove(mlist, textfile):
try:
infp = open(textfile)
except IOError, e:
- if e.errno <> errno.ENOENT: raise
+ if e.errno <> errno.ENOENT:
+ raise
# Otherwise, there's no text file to filter so we're done.
return
try: