summaryrefslogtreecommitdiff
path: root/trollius/py33_exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'trollius/py33_exceptions.py')
-rw-r--r--trollius/py33_exceptions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/trollius/py33_exceptions.py b/trollius/py33_exceptions.py
index f10dfe9..477aadd 100644
--- a/trollius/py33_exceptions.py
+++ b/trollius/py33_exceptions.py
@@ -79,6 +79,9 @@ _MAP_ERRNO = {
errno.ESRCH: ProcessLookupError,
}
+if hasattr(errno, 'EBADF') and errno.EBADF not in _MAP_ERRNO:
+ _MAP_ERRNO[errno.EBADF] = OSError
+
if sys.platform == 'win32':
from trollius import _overlapped
_MAP_ERRNO.update({