[Python-checkins] r47137 - python/trunk/Lib/mailbox.py
neal.norwitz
python-checkins at python.org
Wed Jun 28 07:03:23 CEST 2006
Author: neal.norwitz
Date: Wed Jun 28 07:03:22 2006
New Revision: 47137
Modified:
python/trunk/Lib/mailbox.py
Log:
According to the man pages on Gentoo Linux and Tru64, EACCES or EAGAIN
can be returned if fcntl (lockf) fails. This fixes the test failure
on Tru64 by checking for either error rather than just EAGAIN.
Modified: python/trunk/Lib/mailbox.py
==============================================================================
--- python/trunk/Lib/mailbox.py (original)
+++ python/trunk/Lib/mailbox.py Wed Jun 28 07:03:22 2006
@@ -1805,7 +1805,7 @@
try:
fcntl.lockf(f, fcntl.LOCK_EX | fcntl.LOCK_NB)
except IOError, e:
- if e.errno == errno.EAGAIN:
+ if e.errno in (errno.EAGAIN, errno.EACCES):
raise ExternalClashError('lockf: lock unavailable: %s' %
f.name)
else:
More information about the Python-checkins
mailing list