diff options
| author | bwarsaw | 2001-05-18 20:07:18 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-05-18 20:07:18 +0000 |
| commit | d3cb04d6af67f0cff4a00375b7ce4e8485cbeb4a (patch) | |
| tree | e5a7602fb7791c7fee5203a3dfe128b2d7fce25f /Mailman/LockFile.py | |
| parent | 78e3192a68b692dd573cf44d5e78a745cf5a3595 (diff) | |
| download | mailman-d3cb04d6af67f0cff4a00375b7ce4e8485cbeb4a.tar.gz mailman-d3cb04d6af67f0cff4a00375b7ce4e8485cbeb4a.tar.zst mailman-d3cb04d6af67f0cff4a00375b7ce4e8485cbeb4a.zip | |
Diffstat (limited to 'Mailman/LockFile.py')
| -rw-r--r-- | Mailman/LockFile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/LockFile.py b/Mailman/LockFile.py index 58256b70d..a4b9dbb66 100644 --- a/Mailman/LockFile.py +++ b/Mailman/LockFile.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc. +# Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -359,7 +359,7 @@ class LockFile: filename = fp.read() fp.close() return filename - except (OSError, IOError), e: + except EnvironmentError, e: if e.errno <> errno.ENOENT: raise return None @@ -471,7 +471,7 @@ def _seed(): fp = open('/dev/random') d = fp.read(40) fp.close() - except (IOError, OSError), e: + except EnvironmentError, e: if e.errno <> errno.ENOENT: raise import sha |
