File: //proc/400/root/lib/python2.7/dist-packages/command.pyc
�
#�dc @ s( d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l
m Z d d l Td d l
m Z d d l m Z d � Z d � Z d � Z d
f d � � YZ d e f d
� � YZ d f d � � YZ e a e a e d � Z d � Z d S( s, A high-level interface for command executioni����N( t
FIFOBuffer( t *( t mkarg( t StringIOc C sy | s
d S| d } xM t | � D]? \ } } t j d | � rR t | � | | <q! d | | | <q! W| d d j | � S( Nt i s [\s'\"]t i ( t enumeratet ret searchR t join( t argvt argst it arg( ( s+ /usr/lib/python2.7/dist-packages/command.pyt fmt_argv s
c C s= d d l } | j | | j d � } | t j @r5 t St Sd S( Ni����i ( t fcntlt F_GETFLt ost
O_NONBLOCKt Falset True( t fdR t flags( ( s+ /usr/lib/python2.7/dist-packages/command.pyt get_blocking* s
c C s� d d l } | j | | j d � } | d k r9 d } n | s_ | j | | j | t j B� n | j | | j | t j @� d S( Ni����i ( R R t F_SETFLR R ( R t blockingR R ( ( s+ /usr/lib/python2.7/dist-packages/command.pyt set_blocking2 s t FileEnhancedReadc B s) e Z d � Z d � Z d d d � Z RS( c C s
| | _ d S( N( t fh( t selfR ( ( s+ /usr/lib/python2.7/dist-packages/command.pyt __init__>