projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b35dfdf
)
Import select in libbe.subproc if _POSIX == True
author
W. Trevor King
<wking@drexel.edu>
Fri, 20 Nov 2009 20:09:42 +0000
(15:09 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Fri, 20 Nov 2009 20:09:42 +0000
(15:09 -0500)
libbe/subproc.py
patch
|
blob
|
history
diff --git
a/libbe/subproc.py
b/libbe/subproc.py
index 13afcf85bdd3238e06936d4580b36a5e935ad206..e925c62ac98abc5ce694ab7396b1ebcb74b587db 100644
(file)
--- 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),