From 6d0f064203698638193e6641c1358676c6f37b60 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 20 Nov 2009 15:09:42 -0500 Subject: [PATCH] Import select in libbe.subproc if _POSIX == True --- libbe/subproc.py | 3 +++ 1 file changed, 3 insertions(+) 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), -- 2.26.2