r58745 - pyrepl/trunk/pyrepl/pyrepl
[email protected] Tue, 7 Oct 2008 15:19:19 +0200 (CEST)
| Newsgroups | gmane.comp.python.pyrepl.checkins |
|---|---|
| Message-ID | <[email protected]> |
Author: arigo
Date: Tue Oct 7 15:19:17 2008
New Revision: 58745
Modified:
pyrepl/trunk/pyrepl/pyrepl/unix_console.py
Log:
os.read() typically raises OSError, not IOError.
Modified: pyrepl/trunk/pyrepl/pyrepl/unix_console.py
==============================================================================
--- pyrepl/trunk/pyrepl/pyrepl/unix_console.py (original)
+++ pyrepl/trunk/pyrepl/pyrepl/unix_console.py Tue Oct 7 15:19:17 2008
@@ -400,7 +400,7 @@
while 1: # All hail Unix!
try:
self.push_char(os.read(self.input_fd, 1))
- except IOError, err:
+ except (IOError, OSError), err:
if err.errno == errno.EINTR:
if not self.event_queue.empty():
return self.event_queue.get()