summaryrefslogtreecommitdiff
path: root/Mailman/LockFile.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/LockFile.py')
-rw-r--r--Mailman/LockFile.py6
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