diff options
| author | aszlig <aszlig@redmoonstudios.org> | 2011-10-25 01:12:19 +0200 |
|---|---|---|
| committer | aszlig <aszlig@redmoonstudios.org> | 2011-10-25 01:12:19 +0200 |
| commit | 032290ae2d4b1631630e9b3f8b0d888e4b9cf9b8 (patch) | |
| tree | c826a59220cc5b7b11347add6867c1e0a1381776 | |
| parent | 114c1968427e27d76cc10771b6e01f5627a3d61a (diff) | |
| download | urwid-freebsd_fix.tar.gz | |
vterm: Use errno.EWOULDBLOCK instead of 11.freebsd_fix
This will fix issues with unit tests on FreeBSD and hopefully on Mac OS
X, too.
| -rw-r--r-- | urwid/vterm.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/urwid/vterm.py b/urwid/vterm.py index 7ccc336..8d82fc8 100644 --- a/urwid/vterm.py +++ b/urwid/vterm.py @@ -26,6 +26,7 @@ import pty import time import copy import fcntl +import errno import select import struct import signal @@ -1525,7 +1526,7 @@ class Terminal(BoxWidget): except OSError, e: if e.errno == 5: # End Of File data = '' - elif e.errno == 11: # empty buffer + elif e.errno == errno.EWOULDBLOCK: # empty buffer return else: raise |
