aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
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),