diff options
| author | Barry Warsaw | 2007-11-17 17:38:50 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2007-11-17 17:38:50 -0500 |
| commit | 8a7be9204a9170f9d9b0eb79c2726df0c7a1b4a9 (patch) | |
| tree | 401197ca63700b9b4d30b00bcd1e6cbad881a8bc /Mailman/MTA/Postfix.py | |
| parent | 12ace359ccceb507ac2e55c1333f63d3d92af6f7 (diff) | |
| parent | 02f3861eae46de1b6e580e257d25aa9a4c73a687 (diff) | |
| download | mailman-8a7be9204a9170f9d9b0eb79c2726df0c7a1b4a9.tar.gz mailman-8a7be9204a9170f9d9b0eb79c2726df0c7a1b4a9.tar.zst mailman-8a7be9204a9170f9d9b0eb79c2726df0c7a1b4a9.zip | |
Merge cleanup branch
Diffstat (limited to 'Mailman/MTA/Postfix.py')
| -rw-r--r-- | Mailman/MTA/Postfix.py | 6 |
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: |
