config root man

Current Path : /usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/popen2.pyo

³ò
h”Rc	@sZdZddkZddkZdddgZyeidƒZWneefj
o
dZnXgZd„Z	d	dd
„ƒYZ
de
fd„ƒYZeid
 djpeidjo7[
[ddd„Z
ddd„Zddd„ZnAddd„Z
ddd„Zddd„Zeid	dgƒd„ZedjoeƒndS(snSpawn a command with pipes to its stdin, stdout, and optionally stderr.

The normal os.popen(cmd, mode) call spawns a shell command and provides a
file interface to just the input or output of the process depending on
whether mode is 'r' or 'w'.  This module provides the functions popen2(cmd)
and popen3(cmd) which return two or three pipes to the spawned command.
iÿÿÿÿNtpopen2tpopen3tpopen4tSC_OPEN_MAXicCs]xVtD]M}|idtiƒdjo+yti|ƒWqUtj
oqUXqqWdS(Nt
_deadstatei(t_activetpolltsystmaxinttremovet
ValueError(tinst((s"/usr/local/lib/python2.5/popen2.pyt_cleanupstPopen3cBsJeZdZdZedd„Zd„Zd„Zdd„Z	d„Z
RS(swClass representing a child process.  Normally instances are created
    by the factory functions popen2() and popen3().iÿÿÿÿc
CsCtƒ||_tiƒ\}}tiƒ\}}|otiƒ\}}	ntiƒ|_|idjoLti|dƒti|dƒ|oti|	dƒn|i|ƒnti|ƒti	|d|ƒ|_
ti|ƒti	|d|ƒ|_|o)ti|	ƒti	|d|ƒ|_n
d|_dS(sdThe parameter 'cmd' is the shell command to execute in a
        sub-process.  On UNIX, 'cmd' may be a sequence, in which case arguments
        will be passed directly to the program without shell intervention (as
        with os.spawnv()).  If 'cmd' is a string it will be passed to the shell
        (as with os.system()).   The 'capturestderr' flag, if true, specifies
        that the object should capture standard error output of the child
        process.  The default is false.  If the 'bufsize' parameter is
        specified, it specifies the size of the I/O buffers to/from the child
        process.iiitwtrN(Rtcmdtostpipetforktpidtdup2t
_run_childtclosetfdopenttochildt	fromchildtchilderrtNone(
tselfRt
capturestderrtbufsizetp2creadtp2cwritetc2preadtc2pwriteterroutterrin((s"/usr/local/lib/python2.5/popen2.pyt__init__%s*
	


cCsI|idtiƒ|idjo"tdj	oti|ƒqEndS(NRi(RRRtstsRRtappend(R((s"/usr/local/lib/python2.5/popen2.pyt__del__Gs
cCs‘t|tƒodd|g}nx>tdtƒD]-}yti|ƒWq3tj
oq3Xq3Wzti|d|ƒWdtidƒXdS(Ns/bin/shs-ciii(	t
isinstancet
basestringtxrangetMAXFDRRtOSErrortexecvpt_exit(RRti((s"/usr/local/lib/python2.5/popen2.pyROs	cCs|idjovy?ti|itiƒ\}}||ijo
||_nWq†tij
o!|dj	o
||_q‚q†Xn|iS(shReturn the exit status of the child process if it has finished,
        or -1 if it hasn't finished yet.iN(R'RtwaitpidRtWNOHANGterrorR(RRRR'((s"/usr/local/lib/python2.5/popen2.pyR\s
cCs?|idjo(ti|idƒ\}}||_n|iS(s9Wait for and return the exit status of the child process.i(R'RR2R(RRR'((s"/usr/local/lib/python2.5/popen2.pytwaitjs
N(t__name__t
__module__t__doc__R'tFalseR&R)RRRR5(((s"/usr/local/lib/python2.5/popen2.pyR
s"		
tPopen4cBseZdZdd„ZRS(iÿÿÿÿcCsâtƒ||_tiƒ\}}tiƒ\}}tiƒ|_|idjoAti|dƒti|dƒti|dƒ|i|ƒnti|ƒti	|d|ƒ|_
ti|ƒti	|d|ƒ|_dS(NiiiRR(RRRRRRRRRRRR(RRRR R!R"R#((s"/usr/local/lib/python2.5/popen2.pyR&xs	

N(R6R7RRR&(((s"/usr/local/lib/python2.5/popen2.pyR:usitwintos2emxttcCs%ti|||ƒ\}}||fS(s¸Execute the shell command 'cmd' in a sub-process. On UNIX, 'cmd' may
        be a sequence, in which case arguments will be passed directly to the
        program without shell intervention (as with os.spawnv()). If 'cmd' is a
        string it will be passed to the shell (as with os.system()). If
        'bufsize' is specified, it sets the buffer size for the I/O pipes. The
        file objects (child_stdout, child_stdin) are returned.(RR(RRtmodeRR((s"/usr/local/lib/python2.5/popen2.pyRŽscCs+ti|||ƒ\}}}|||fS(sÆExecute the shell command 'cmd' in a sub-process. On UNIX, 'cmd' may
        be a sequence, in which case arguments will be passed directly to the
        program without shell intervention (as with os.spawnv()). If 'cmd' is a
        string it will be passed to the shell (as with os.system()). If
        'bufsize' is specified, it sets the buffer size for the I/O pipes. The
        file objects (child_stdout, child_stdin, child_stderr) are returned.(RR(RRR>RRte((s"/usr/local/lib/python2.5/popen2.pyR˜scCs%ti|||ƒ\}}||fS(s¿Execute the shell command 'cmd' in a sub-process. On UNIX, 'cmd' may
        be a sequence, in which case arguments will be passed directly to the
        program without shell intervention (as with os.spawnv()). If 'cmd' is a
        string it will be passed to the shell (as with os.system()). If
        'bufsize' is specified, it sets the buffer size for the I/O pipes. The
        file objects (child_stdout_stderr, child_stdin) are returned.(RR(RRR>RR((s"/usr/local/lib/python2.5/popen2.pyR¢scCs"t|t|ƒ}|i|ifS(s¸Execute the shell command 'cmd' in a sub-process. On UNIX, 'cmd' may
        be a sequence, in which case arguments will be passed directly to the
        program without shell intervention (as with os.spawnv()). If 'cmd' is a
        string it will be passed to the shell (as with os.system()). If
        'bufsize' is specified, it sets the buffer size for the I/O pipes. The
        file objects (child_stdout, child_stdin) are returned.(R
R9RR(RRR>R((s"/usr/local/lib/python2.5/popen2.pyR¬scCs(t|t|ƒ}|i|i|ifS(sÆExecute the shell command 'cmd' in a sub-process. On UNIX, 'cmd' may
        be a sequence, in which case arguments will be passed directly to the
        program without shell intervention (as with os.spawnv()). If 'cmd' is a
        string it will be passed to the shell (as with os.system()). If
        'bufsize' is specified, it sets the buffer size for the I/O pipes. The
        file objects (child_stdout, child_stdin, child_stderr) are returned.(R
tTrueRRR(RRR>R((s"/usr/local/lib/python2.5/popen2.pyR¶scCst||ƒ}|i|ifS(s¿Execute the shell command 'cmd' in a sub-process. On UNIX, 'cmd' may
        be a sequence, in which case arguments will be passed directly to the
        program without shell intervention (as with os.spawnv()). If 'cmd' is a
        string it will be passed to the shell (as with os.system()). If
        'bufsize' is specified, it sets the buffer size for the I/O pipes. The
        file objects (child_stdout_stderr, child_stdin) are returned.(R:RR(RRR>R((s"/usr/local/lib/python2.5/popen2.pyRÀscCstƒd}d}tidjo
d}n|iƒ}dGHt|ƒ\}}|i|ƒ|iƒ|iƒ}|iƒ|jotd||fƒ‚ndGHyt	|gƒ\}}}Wnt	|ƒ\}}}nX|i|ƒ|iƒ|iƒ}|iƒ|jotd||fƒ‚n|iƒ}|otd|fƒ‚nxt
D]}|iƒqbWtƒt
otd	ƒ‚nd
GHdS(Ntcatsab cd
tnttmorestesting popen2...swrote %r read %rstesting popen3...sunexpected %r on stderrs_active not emptysAll OK(RRtnametstripRtwriteRtreadR
RRR5(RtteststrtexpectedRRtgotR?R((s"/usr/local/lib/python2.5/popen2.pyt_testÌsB




t__main__((R8RRt__all__tsysconfR-tAttributeErrorR
RRR
R:tplatformRRRtextendRKR6(((s"/usr/local/lib/python2.5/popen2.pys<module>s.	
V$





	'


Man Man