diff options
| author | Barry Warsaw | 2009-12-14 22:49:47 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-12-14 22:49:47 -0500 |
| commit | 7592ba511e37a299e3329f95e584873f3613dc5f (patch) | |
| tree | d7b11c6d0ebbb5006d1ff12a1829659a05dbfb17 /src/mailman/pipeline/file_recipients.py | |
| parent | 91020e5c0b7cc70b12d16741bd415b5eb017b63e (diff) | |
| download | mailman-7592ba511e37a299e3329f95e584873f3613dc5f.tar.gz mailman-7592ba511e37a299e3329f95e584873f3613dc5f.tar.zst mailman-7592ba511e37a299e3329f95e584873f3613dc5f.zip | |
Diffstat (limited to 'src/mailman/pipeline/file_recipients.py')
| -rw-r--r-- | src/mailman/pipeline/file_recipients.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/pipeline/file_recipients.py b/src/mailman/pipeline/file_recipients.py index fdc09068a..57199172c 100644 --- a/src/mailman/pipeline/file_recipients.py +++ b/src/mailman/pipeline/file_recipients.py @@ -35,6 +35,7 @@ from mailman.interfaces.handler import IHandler +# pylint: disable-msg=W0232,R0201,W0613 class FileRecipients: """Get the normal delivery recipients from an include file.""" @@ -51,8 +52,8 @@ class FileRecipients: try: with open(filename) as fp: addrs = set(line.strip() for line in fp) - except IOError, e: - if e.errno <> errno.ENOENT: + except IOError as error: + if error.errno != errno.ENOENT: raise msgdata['recipients'] = set() return |
