diff options
author | W. Trevor King <wking@drexel.edu> | 2009-11-20 15:09:42 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-11-20 15:09:42 -0500 |
commit | 6d0f064203698638193e6641c1358676c6f37b60 (patch) | |
tree | 84e6660b4dfb2c6c029fa7a9d0bb9fd3b6baba30 /libbe | |
parent | b35dfdf10b2f58a0632d0a0542bd8232a39b0391 (diff) | |
download | bugseverywhere-6d0f064203698638193e6641c1358676c6f37b60.tar.gz |
Import select in libbe.subproc if _POSIX == True
Diffstat (limited to 'libbe')
-rw-r--r-- | libbe/subproc.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbe/subproc.py b/libbe/subproc.py index 13afcf8..e925c62 100644 --- a/libbe/subproc.py +++ b/libbe/subproc.py @@ -27,6 +27,9 @@ from encoding import get_encoding _MSWINDOWS = sys.platform == 'win32' _POSIX = not _MSWINDOWS +if _POSIX == True: + import select + class CommandError(Exception): def __init__(self, command, status, stdout=None, stderr=None): strerror = ['Command failed (%d):\n %s\n' % (status, stderr), |