aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-11-20 15:09:42 -0500
committerW. Trevor King <wking@drexel.edu>2009-11-20 15:09:42 -0500
commit6d0f064203698638193e6641c1358676c6f37b60 (patch)
tree84e6660b4dfb2c6c029fa7a9d0bb9fd3b6baba30 /libbe
parentb35dfdf10b2f58a0632d0a0542bd8232a39b0391 (diff)
downloadbugseverywhere-6d0f064203698638193e6641c1358676c6f37b60.tar.gz
Import select in libbe.subproc if _POSIX == True
Diffstat (limited to 'libbe')
-rw-r--r--libbe/subproc.py3
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),