OwlCyberSecurity - MANAGER
Edit File: subprocess.cpython-33.pyc
� ��f��c���������������@���s��d��Z��d�d�l�Z�e�j�d�k�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�y�d�d�l�m �Z�Wn"�e�k �r��d�d�l�m�Z�Yn�XGd�d����d�e���Z�Gd�d ����d �e���Z�Gd �d����d�e���Z�e�r[d�d�l�Z�d�d�l�Z�d�d�l�Z�Gd�d ����d ���Z�Gd�d����d���Z�nB�d�d�l�Z�e�e�d���Z�d�d�l�Z�e�j�Z�e�e�d�d���Z �d�d�d�d�d�d�d�d�d �d�g �Z!�e�r?d�d�l�m"�Z"�m#�Z#�m$�Z$�m%�Z%�m&�Z&�m'�Z'�m(�Z(�m)�Z)�e!�j*�d�d�d�d �d!�d"�d#�d$�g���Gd%�d&����d&�e+���Z,�n��y�e�j-�d'���Z.�Wn�d(�Z.�Yn�Xg��Z/�d)�d*����Z0�d;�Z1�d<�Z2�d=�Z3�d.�d/����Z4�d0�d1����Z5�d2�d�d3�d���Z7�d4�d����Z8�d2�d�d5�d���Z9�d6�d7����Z:�d8�d����Z;�d9�d����Z<�e=����Z>�Gd:�d����d�e=���Z?�d�S(>���u�-��subprocess - Subprocesses with accessible I/O streams This module allows you to spawn processes, connect to their input/output/error pipes, and obtain their return codes. This module intends to replace several older modules and functions: os.system os.spawn* Information about how the subprocess module can be used to replace these modules and functions can be found below. Using the subprocess module =========================== This module defines one class called Popen: class Popen(args, bufsize=-1, executable=None, stdin=None, stdout=None, stderr=None, preexec_fn=None, close_fds=True, shell=False, cwd=None, env=None, universal_newlines=False, startupinfo=None, creationflags=0, restore_signals=True, start_new_session=False, pass_fds=()): Arguments are: args should be a string, or a sequence of program arguments. The program to execute is normally the first item in the args sequence or string, but can be explicitly set by using the executable argument. On POSIX, with shell=False (default): In this case, the Popen class uses os.execvp() to execute the child program. args should normally be a sequence. A string will be treated as a sequence with the string as the only item (the program to execute). On POSIX, with shell=True: If args is a string, it specifies the command string to execute through the shell. If args is a sequence, the first item specifies the command string, and any additional items will be treated as additional shell arguments. On Windows: the Popen class uses CreateProcess() to execute the child program, which operates on strings. If args is a sequence, it will be converted to a string using the list2cmdline method. Please note that not all MS Windows applications interpret the command line the same way: The list2cmdline is designed for applications using the same rules as the MS C runtime. bufsize will be supplied as the corresponding argument to the io.open() function when creating the stdin/stdout/stderr pipe file objects: 0 means unbuffered (read & write are one system call and can return short), 1 means line buffered, any other positive value means use a buffer of approximately that size. A negative bufsize, the default, means the system default of io.DEFAULT_BUFFER_SIZE will be used. stdin, stdout and stderr specify the executed programs' standard input, standard output and standard error file handles, respectively. Valid values are PIPE, an existing file descriptor (a positive integer), an existing file object, and None. PIPE indicates that a new pipe to the child should be created. With None, no redirection will occur; the child's file handles will be inherited from the parent. Additionally, stderr can be STDOUT, which indicates that the stderr data from the applications should be captured into the same file handle as for stdout. On POSIX, if preexec_fn is set to a callable object, this object will be called in the child process just before the child is executed. The use of preexec_fn is not thread safe, using it in the presence of threads could lead to a deadlock in the child process before the new executable is executed. If close_fds is true, all file descriptors except 0, 1 and 2 will be closed before the child process is executed. The default for close_fds varies by platform: Always true on POSIX. True when stdin/stdout/stderr are None on Windows, false otherwise. pass_fds is an optional sequence of file descriptors to keep open between the parent and child. Providing any pass_fds implicitly sets close_fds to true. if shell is true, the specified command will be executed through the shell. If cwd is not None, the current directory will be changed to cwd before the child is executed. On POSIX, if restore_signals is True all signals that Python sets to SIG_IGN are restored to SIG_DFL in the child process before the exec. Currently this includes the SIGPIPE, SIGXFZ and SIGXFSZ signals. This parameter does nothing on Windows. On POSIX, if start_new_session is True, the setsid() system call will be made in the child process prior to executing the command. If env is not None, it defines the environment variables for the new process. If universal_newlines is false, the file objects stdin, stdout and stderr are opened as binary files, and no line ending conversion is done. If universal_newlines is true, the file objects stdout and stderr are opened as a text files, but lines may be terminated by any of '\n', the Unix end-of-line convention, '\r', the old Macintosh convention or '\r\n', the Windows convention. All of these external representations are seen as '\n' by the Python program. Also, the newlines attribute of the file objects stdout, stdin and stderr are not updated by the communicate() method. The startupinfo and creationflags, if given, will be passed to the underlying CreateProcess() function. They can specify things such as appearance of the main window and priority for the new process. (Windows only) This module also defines some shortcut functions: call(*popenargs, **kwargs): Run command with arguments. Wait for command to complete, then return the returncode attribute. The arguments are the same as for the Popen constructor. Example: >>> retcode = subprocess.call(["ls", "-l"]) check_call(*popenargs, **kwargs): Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the Popen constructor. Example: >>> subprocess.check_call(["ls", "-l"]) 0 getstatusoutput(cmd): Return (status, output) of executing cmd in a shell. Execute the string 'cmd' in a shell with os.popen() and return a 2-tuple (status, output). cmd is actually run as '{ cmd ; } 2>&1', so that the returned output will contain output or error messages. A trailing newline is stripped from the output. The exit status for the command can be interpreted according to the rules for the C function wait(). Example: >>> subprocess.getstatusoutput('ls /bin/ls') (0, '/bin/ls') >>> subprocess.getstatusoutput('cat /bin/junk') (256, 'cat: /bin/junk: No such file or directory') >>> subprocess.getstatusoutput('/bin/junk') (256, 'sh: /bin/junk: not found') getoutput(cmd): Return output (stdout or stderr) of executing cmd in a shell. Like getstatusoutput(), except the exit status is ignored and the return value is a string containing the command's output. Example: >>> subprocess.getoutput('ls /bin/ls') '/bin/ls' check_output(*popenargs, **kwargs): Run command with arguments and return its output. If the exit code was non-zero it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute and output in the output attribute. The arguments are the same as for the Popen constructor. Example: >>> output = subprocess.check_output(["ls", "-l", "/dev/null"]) Exceptions ---------- Exceptions raised in the child process, before the new program has started to execute, will be re-raised in the parent. Additionally, the exception object will have one extra attribute called 'child_traceback', which is a string containing traceback information from the child's point of view. The most common exception raised is OSError. This occurs, for example, when trying to execute a non-existent file. Applications should prepare for OSErrors. A ValueError will be raised if Popen is called with invalid arguments. Exceptions defined within this module inherit from SubprocessError. check_call() and check_output() will raise CalledProcessError if the called process returns a non-zero return code. TimeoutExpired be raised if a timeout was specified and expired. Security -------- Unlike some other popen functions, this implementation will never call /bin/sh implicitly. This means that all characters, including shell metacharacters, can safely be passed to child processes. Popen objects ============= Instances of the Popen class have the following methods: poll() Check if child process has terminated. Returns returncode attribute. wait() Wait for child process to terminate. Returns returncode attribute. communicate(input=None) Interact with process: Send data to stdin. Read data from stdout and stderr, until end-of-file is reached. Wait for process to terminate. The optional input argument should be a string to be sent to the child process, or None, if no data should be sent to the child. communicate() returns a tuple (stdout, stderr). Note: The data read is buffered in memory, so do not use this method if the data size is large or unlimited. The following attributes are also available: stdin If the stdin argument is PIPE, this attribute is a file object that provides input to the child process. Otherwise, it is None. stdout If the stdout argument is PIPE, this attribute is a file object that provides output from the child process. Otherwise, it is None. stderr If the stderr argument is PIPE, this attribute is file object that provides error output from the child process. Otherwise, it is None. pid The process ID of the child process. returncode The child return code. A None value indicates that the process hasn't terminated yet. A negative value -N indicates that the child was terminated by signal N (POSIX only). Replacing older functions with the subprocess module ==================================================== In this section, "a ==> b" means that b can be used as a replacement for a. Note: All functions in this section fail (more or less) silently if the executed program cannot be found; this module raises an OSError exception. In the following examples, we assume that the subprocess module is imported with "from subprocess import *". Replacing /bin/sh shell backquote --------------------------------- output=`mycmd myarg` ==> output = Popen(["mycmd", "myarg"], stdout=PIPE).communicate()[0] Replacing shell pipe line ------------------------- output=`dmesg | grep hda` ==> p1 = Popen(["dmesg"], stdout=PIPE) p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE) output = p2.communicate()[0] Replacing os.system() --------------------- sts = os.system("mycmd" + " myarg") ==> p = Popen("mycmd" + " myarg", shell=True) pid, sts = os.waitpid(p.pid, 0) Note: * Calling the program through the shell is usually not required. * It's easier to look at the returncode attribute than the exitstatus. A more real-world example would look like this: try: retcode = call("mycmd" + " myarg", shell=True) if retcode < 0: print("Child was terminated by signal", -retcode, file=sys.stderr) else: print("Child returned", retcode, file=sys.stderr) except OSError as e: print("Execution failed:", e, file=sys.stderr) Replacing os.spawn* ------------------- P_NOWAIT example: pid = os.spawnlp(os.P_NOWAIT, "/bin/mycmd", "mycmd", "myarg") ==> pid = Popen(["/bin/mycmd", "myarg"]).pid P_WAIT example: retcode = os.spawnlp(os.P_WAIT, "/bin/mycmd", "mycmd", "myarg") ==> retcode = call(["/bin/mycmd", "myarg"]) Vector example: os.spawnvp(os.P_NOWAIT, path, args) ==> Popen([path] + args[1:]) Environment example: os.spawnlpe(os.P_NOWAIT, "/bin/mycmd", "mycmd", "myarg", env) ==> Popen(["/bin/mycmd", "myarg"], env={"PATH": "/usr/bin"}) i����Nu���win32(���u ���monotonic(���u���timec�������������B���s���|��Ee��Z�d��Z�d�S(���u���SubprocessErrorN(���u���__name__u ���__module__u���__qualname__(���u ���__locals__(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���SubprocessErrorh��s����u���SubprocessErrorc�������������B���s5���|��Ee��Z�d��Z�d�Z�d�d�d���Z�d�d����Z�d�S(���u���CalledProcessErroru����This exception is raised when a process run by check_call() or check_output() returns a non-zero exit status. The exit status will be stored in the returncode attribute; check_output() will also store the output in the output attribute. c�������������C���s���|�|��_��|�|��_�|�|��_�d��S(���N(���u ���returncodeu���cmdu���output(���u���selfu ���returncodeu���cmdu���output(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���__init__q��s���� u���CalledProcessError.__init__c�������������C���s���d�|��j��|��j�f�S(���Nu-���Command '%s' returned non-zero exit status %d(���u���cmdu ���returncode(���u���self(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���__str__u��s����u���CalledProcessError.__str__N(���u���__name__u ���__module__u���__qualname__u���__doc__u���Noneu���__init__u���__str__(���u ���__locals__(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���CalledProcessErrork��s���u���CalledProcessErrorc�������������B���s5���|��Ee��Z�d��Z�d�Z�d�d�d���Z�d�d����Z�d�S(���u���TimeoutExpiredu]���This exception is raised when the timeout expires while waiting for a child process. c�������������C���s���|�|��_��|�|��_�|�|��_�d��S(���N(���u���cmdu���timeoutu���output(���u���selfu���cmdu���timeoutu���output(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���__init__}��s���� u���TimeoutExpired.__init__c�������������C���s���d�|��j��|��j�f�S(���Nu'���Command '%s' timed out after %s seconds(���u���cmdu���timeout(���u���self(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���__str__���s����u���TimeoutExpired.__str__N(���u���__name__u ���__module__u���__qualname__u���__doc__u���Noneu���__init__u���__str__(���u ���__locals__(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���TimeoutExpiredy��s���u���TimeoutExpiredc�������������B���s2���|��Ee��Z�d��Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�S(���u���STARTUPINFOi����N( ���u���__name__u ���__module__u���__qualname__u���dwFlagsu���Noneu ���hStdInputu ���hStdOutputu ���hStdErroru���wShowWindow(���u ���__locals__(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���STARTUPINFO���s ���u���STARTUPINFOc�������������B���s���|��Ee��Z�d��Z�e�Z�d�S(���u ���pywintypesN(���u���__name__u ���__module__u���__qualname__u���IOErroru���error(���u ���__locals__(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu ���pywintypes���s���u ���pywintypesu���pollu���PIPE_BUFi���u���Popenu���PIPEu���STDOUTu���callu ���check_callu���getstatusoutputu ���getoutputu���check_outputu���DEVNULL(���u���CREATE_NEW_CONSOLEu���CREATE_NEW_PROCESS_GROUPu���STD_INPUT_HANDLEu���STD_OUTPUT_HANDLEu���STD_ERROR_HANDLEu���SW_HIDEu���STARTF_USESTDHANDLESu���STARTF_USESHOWWINDOWu���CREATE_NEW_CONSOLEu���CREATE_NEW_PROCESS_GROUPu���STD_INPUT_HANDLEu���STD_OUTPUT_HANDLEu���STD_ERROR_HANDLEu���SW_HIDEu���STARTF_USESTDHANDLESu���STARTF_USESHOWWINDOWc�������������B���sP���|��Ee��Z�d��Z�d�Z�e�j�d�d���Z�d�d����Z�d�d����Z �e�Z �e �Z�d�S( ���u���Handlec�������������C���s#���|��j��s�d�|��_��|�|����n��d��S(���NT(���u���closedu���True(���u���selfu���CloseHandle(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���Close���s���� u���Handle.Closec�������������C���s,���|��j��s�d�|��_��t�|����St�d�����d��S(���Nu���already closedT(���u���closedu���Trueu���intu ���ValueError(���u���self(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���Detach���s���� u ���Handle.Detachc�������������C���s���d�t��|����S(���Nu ���Handle(%d)(���u���int(���u���self(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���__repr__���s����u���Handle.__repr__NF(���u���__name__u ���__module__u���__qualname__u���Falseu���closedu���_winapiu���CloseHandleu���Closeu���Detachu���__repr__u���__del__u���__str__(���u ���__locals__(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���Handle���s���u���Handleu���SC_OPEN_MAXi���c��������������C���si���xb�t��d��d����D]P�}��|��j�d�t�j���}�|�d��k �r�y�t��j�|����Wqa�t�k �r]�Yqa�Xq�q�Wd��S(���Nu ���_deadstate(���u���_activeu���_internal_pollu���sysu���maxsizeu���Noneu���removeu ���ValueError(���u���instu���res(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_cleanup���s���� u���_cleanupi���i���i���c�������������G���s0���x)�y�|��|����SWq�t��k �r(�w�Yq�Xq�d��S(���N(���u���InterruptedError(���u���funcu���args(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_eintr_retry_call���s ���� u���_eintr_retry_callc��������������C���s����i �d�d�6d�d�6d�d�6d�d�6d �d �6d�d�6d �d�6d�d�6d�d�6d�d�6}��g��}�xP�|��j�����D]B�\�}�}�t�t�j�|���}�|�d�k�r_�|�j�d�|�|���q_�q_�Wx"�t�j�D]�}�|�j�d�|���q��W|�S(���un���Return a list of command-line arguments reproducing the current settings in sys.flags and sys.warnoptions.u���du���debugu���Ou���optimizeu���Bu���dont_write_bytecodeu���su���no_user_siteu���Su���no_siteu���Eu���ignore_environmentu���vu���verboseu���bu ���bytes_warningu���qu���quietu���Ru���hash_randomizationi����u���-u���-W(���u���itemsu���getattru���sysu���flagsu���appendu���warnoptions(���u���flag_opt_mapu���argsu���flagu���optu���v(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_args_from_interpreter_flags���s&���� u���_args_from_interpreter_flagsu���timeoutc�������������O���sR���t��|�|�����=�}�y�|�j�d�|����SWn�|�j����|�j�������Yn�XWd�QXd�S(���u����Run command with arguments. Wait for command to complete or timeout, then return the returncode attribute. The arguments are the same as for the Popen constructor. Example: retcode = call(["ls", "-l"]) u���timeoutN(���u���Popenu���waitu���kill(���u���timeoutu ���popenargsu���kwargsu���p(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���call��s���� c��������������O���sS���t��|��|����}�|�rO�|�j�d���}�|�d�k�r=�|��d�}�n��t�|�|�����n��d�S(���uO��Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) u���argsi����N(���u���callu���getu���Noneu���CalledProcessError(���u ���popenargsu���kwargsu���retcodeu���cmd(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu ���check_call��s���� c�������������O���s����d�|�k�r�t��d�����n��t�d�t�|�|������}�y�|�j�d�|����\�}�}�Wnd�t�k �r��|�j����|�j����\�}�}�t�|�j�|��d�|����Yn�|�j����|�j�������Yn�X|�j����}�|�r��t �|�|�j�d�|����n��Wd�QX|�S(���uV��Run command with arguments and return its output. If the exit code was non-zero it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute and output in the output attribute. The arguments are the same as for the Popen constructor. Example: >>> check_output(["ls", "-l", "/dev/null"]) b'crw-rw-rw- 1 root root 1, 3 Oct 18 2007 /dev/null\n' The stdout argument is not allowed as it is used internally. To capture standard error in the result, use stderr=STDOUT. >>> check_output(["/bin/sh", "-c", ... "ls -l non_existent_file ; exit 0"], ... stderr=STDOUT) b'ls: non_existent_file: No such file or directory\n' If universal_newlines=True is passed, the return value will be a string rather than bytes. u���stdoutu3���stdout argument not allowed, it will be overridden.u���timeoutu���outputN( ���u ���ValueErroru���Popenu���PIPEu���communicateu���TimeoutExpiredu���killu���argsu���waitu���pollu���CalledProcessError(���u���timeoutu ���popenargsu���kwargsu���processu���outputu ���unused_erru���retcode(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���check_output'��s"���� !c�������������C���sG��g��}�d�}�x+|��D]#}�g��}�|�r5�|�j�d���n��d�|�k�pQ�d�|�k�pQ�|�}�|�rj�|�j�d���n��x��|�D]��}�|�d�k�r��|�j�|���qq�|�d�k�r��|�j�d�t�|���d���g��}�|�j�d���qq�|�r��|�j�|���g��}�n��|�j�|���qq�W|�r|�j�|���n��|�r�|�j�|���|�j�d���q�q�Wd�j�|���S( ���u��� Translate a sequence of arguments into a command line string, using the same rules as the MS C runtime: 1) Arguments are delimited by white space, which is either a space or a tab. 2) A string surrounded by double quotation marks is interpreted as a single argument, regardless of white space contained within. A quoted string can be embedded in an argument. 3) A double quotation mark preceded by a backslash is interpreted as a literal double quotation mark. 4) Backslashes are interpreted literally, unless they immediately precede a double quotation mark. 5) If backslashes immediately precede a double quotation mark, every pair of backslashes is interpreted as a literal backslash. If the number of backslashes is odd, the last backslash escapes the next double quotation mark as described in rule 3. u��� u��� u���"u���\i���u���\"u����F(���u���Falseu���appendu���lenu���extendu���join(���u���sequ���resultu ���needquoteu���argu���bs_bufu���c(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���list2cmdlineQ��s4���� u���list2cmdlinec�������������C���s����y(�t��|��d�d�d�d�d�t��}�d�}�Wn7�t�k �ra�}�z�|�j�}�|�j�}�WYd�d�}�~�Xn�X|�d �d���d�k�r��|�d�d ���}�n��|�|�f�S(���u���Return (status, output) of executing cmd in a shell. Execute the string 'cmd' in a shell with os.popen() and return a 2-tuple (status, output). cmd is actually run as '{ cmd ; } 2>&1', so that the returned output will contain output or error messages. A trailing newline is stripped from the output. The exit status for the command can be interpreted according to the rules for the C function wait(). Example: >>> import subprocess >>> subprocess.getstatusoutput('ls /bin/ls') (0, '/bin/ls') >>> subprocess.getstatusoutput('cat /bin/junk') (256, 'cat: /bin/junk: No such file or directory') >>> subprocess.getstatusoutput('/bin/junk') (256, 'sh: /bin/junk: not found') u���shellu���universal_newlinesu���stderri����Ni���u��� Ti����i����(���u���check_outputu���Trueu���STDOUTu���CalledProcessErroru���outputu ���returncode(���u���cmdu���datau���statusu���ex(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���getstatusoutput���s���� c�������������C���s���t��|����d�S(���u%��Return output (stdout or stderr) of executing cmd in a shell. Like getstatusoutput(), except the exit status is ignored and the return value is a string containing the command's output. Example: >>> import subprocess >>> subprocess.getoutput('ls /bin/ls') '/bin/ls' i���(���u���getstatusoutput(���u���cmd(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu ���getoutput���s���� c�������������B���sQ��|��Ee��Z�d��Z�dA�Z�dB�d@�d@�d@�d@�d@�e�dA�d@�d@�dA�d@�d�dC�dA�f��d�d���Z�d�d����Z �d�d����Z �d �d ����Z�e�j �d�d���Z�d �d����Z�d@�d@�d�d���Z�d�d����Z�d�d����Z�d�d����Z�e�rld�d����Z�d�d����Z�d�d����Z�d�d����Z�d@�e�j�e�j�e�j�d�d ���Z�d@�d@�d!�d"���Z�d#�d$����Z�d%�d&����Z �d'�d(����Z!�d)�d*����Z"�e"�Z#�n��d+�d����Z�d,�d-����Z$�d.�d����Z�e%�j&�e%�j'�e%�j(�e%�j)�d/�d0���Z*�d@�e%�j+�e%�j,�e%�j-�e.�j/�d1�d ���Z�d2�d3����Z0�d@�d@�d4�d"���Z�d5�d&����Z �d6�d7����Z1�d8�d9����Z2�d:�d;����Z3�d<�d(����Z!�d=�d*����Z"�d>�d?����Z#�d@�S(D���u���Popeni���i����c�������������C���sj��t�����d �|��_�d�|��_�|�d �k�r.�d�}�n��t�|�t���sL�t�d�����n��t�r��|�d �k �rm�t �d�����n��|�d �k �p��|�d �k �p��|�d �k �}�|�t �k�r��|�r��d�}�q��d�}�qD|�rD|�rDt �d�����qDnq�|�t �k�r��d�}�n��|�r|�rt�j �d�t���d�}�n��| �d �k �r)t �d�����n��|�d�k�rDt �d�����n��|�|��_�d �|��_�d �|��_�d �|��_�d �|��_�d �|��_�|�|��_�|��j�|�|�|���\�}�}�}�}�}�}�t�r(|�d�k�r�t�j�|�j����d���}�n��|�d�k�r�t�j�|�j����d���}�n��|�d�k�r(t�j�|�j����d���}�q(n��|�d�k�rst�j�|�d �|���|��_�|�rst�j�|��j�d �d��|��_�qsn��|�d�k�r�t�j�|�d�|���|��_�|�r�t�j�|��j���|��_�q�n��|�d�k�r�t�j�|�d�|���|��_�|�r�t�j�|��j���|��_�q�n��d�|��_�yD�|��j�|�|�|�|�|�| �|�| �|�| �|�|�|�|�|�|�|�|���WnxL�t�d �|��j�|��j�|��j�f���D])�}�y�|�j ����Wqrt!�k �r�YqrXqrW|��j�s^g��}�|�t"�k�r�|�j#�|���n��|�t"�k�r�|�j#�|���n��|�t"�k�r|�j#�|���n��t$�|��d���r$|�j#�|��j%���n��x7�|�D],�}�y�t&�j �|���Wq+t!�k �rVYq+Xq+Wn�����Yn�Xd �S(���u���Create new Popen instance.i���u���bufsize must be an integeru0���preexec_fn is not supported on Windows platformsuS���close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderru���pass_fds overriding close_fds.u2���startupinfo is only supported on Windows platformsi����u4���creationflags is only supported on Windows platformsu���wbu ���write_throughu���rbu���_devnullNFi����Ti����i����i����i����i����i����('���u���_cleanupu���Noneu���_inputu���Falseu���_communication_startedu ���isinstanceu���intu ���TypeErroru ���mswindowsu ���ValueErroru���_PLATFORM_DEFAULT_CLOSE_FDSu���Trueu���warningsu���warnu���RuntimeWarningu���argsu���stdinu���stdoutu���stderru���pidu ���returncodeu���universal_newlinesu���_get_handlesu���msvcrtu���open_osfhandleu���Detachu���iou���openu ���TextIOWrapperu���_closed_child_pipe_fdsu���_execute_childu���filteru���closeu���EnvironmentErroru���PIPEu���appendu���hasattru���_devnullu���os(���u���selfu���argsu���bufsizeu ���executableu���stdinu���stdoutu���stderru ���preexec_fnu ���close_fdsu���shellu���cwdu���envu���universal_newlinesu���startupinfou ���creationflagsu���restore_signalsu���start_new_sessionu���pass_fdsu ���any_stdio_setu���p2creadu���p2cwriteu���c2preadu���c2pwriteu���errreadu���errwriteu���fu���to_closeu���fd(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���__init__���s����� '! ( u���Popen.__init__c�������������C���s+���|�j��|���}�|�j�d�d���j�d�d���S(���Nu��� u��� u��� (���u���decodeu���replace(���u���selfu���datau���encoding(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_translate_newlinesO��s����u���Popen._translate_newlinesc�������������C���s���|��S(���N(����(���u���self(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu ���__enter__S��s����u���Popen.__enter__c�������������C���sY���|��j��r�|��j��j����n��|��j�r2�|��j�j����n��|��j�rK�|��j�j����n��|��j����d��S(���N(���u���stdoutu���closeu���stderru���stdinu���wait(���u���selfu���typeu���valueu ���traceback(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���__exit__V��s���� u���Popen.__exit__c�������������C���sL���|��j��s �d��S|��j�d�|���|��j�d��k�rH�t�d��k �rH�t�j�|����n��d��S(���Nu ���_deadstate(���u���_child_createdu���_internal_pollu ���returncodeu���Noneu���_activeu���append(���u���selfu���_maxsize(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���__del__`��s ���� u ���Popen.__del__c�������������C���s4���t��|��d���s-�t�j�t�j�t�j���|��_�n��|��j�S(���Nu���_devnull(���u���hasattru���osu���openu���devnullu���O_RDWRu���_devnull(���u���self(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_get_devnullj��s����u���Popen._get_devnullc�������������C���s���|��j��r�|�r�t�d�����n��|�d�k�rR|��j��rR|��j�|��j�|��j�g�j�d���d�k�rRd�}�d�}�|��j�r��|�r��y�|��j�j�|���Wq��t�k �r��}�z/�|�j �t �j �k�r��|�j �t �j�k�r�����n��WYd�d�}�~�Xq��Xn��|��j�j����nV�|��j�rt �|��j�j���}�|��j�j����n+�|��j�rEt �|��j�j���}�|��j�j����n��|��j����ni�|�d�k �rnt����|�}�n�d�}�z�|��j�|�|�|���\�}�}�Wd�d�|��_��X|��j�d�|��j�|�����}�|�|�f�S(���uc��Interact with process: Send data to stdin. Read data from stdout and stderr, until end-of-file is reached. Wait for process to terminate. The optional input argument should be bytes to be sent to the child process, or None, if no data should be sent to the child. communicate() returns a tuple (stdout, stderr).u.���Cannot send input after starting communicationi���Nu���timeoutT(���u���_communication_startedu ���ValueErroru���Noneu���stdinu���stdoutu���stderru���countu���writeu���IOErroru���errnou���EPIPEu���EINVALu���closeu���_eintr_retry_callu���readu���waitu���_timeu���_communicateu���Trueu���_remaining_time(���u���selfu���inputu���timeoutu���stdoutu���stderru���eu���endtimeu���sts(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���communicateo��s:���� ' $ u���Popen.communicatec�������������C���s ���|��j�����S(���N(���u���_internal_poll(���u���self(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���poll���s����u ���Popen.pollc�������������C���s���|�d�k�r�d�S|�t����Sd�S(���u5���Convenience for _communicate when computing timeouts.N(���u���Noneu���_time(���u���selfu���endtime(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_remaining_time���s����u���Popen._remaining_timec�������������C���s8���|�d�k�r�d�St����|�k�r4�t�|��j�|�����n��d�S(���u2���Convenience for checking if a timeout has expired.N(���u���Noneu���_timeu���TimeoutExpiredu���args(���u���selfu���endtimeu���orig_timeout(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_check_timeout���s����u���Popen._check_timeoutc�������������C���s���|�d�k�r(�|�d�k�r(�|�d�k�r(�d �Sd �\�}�}�d�\�}�}�d�\�}�} �|�d�k�r��t�j�t�j���}�|�d�k�rGt�j�d�d���\�}�} �t�|���}�t�j�| ���qGn��|�t�k�r��t�j�d�d���\�}�}�t�|���t�|���}�}�nZ�|�t�k�rt �j �|��j������}�n6�t�|�t ���r2t �j �|���}�n�t �j �|�j������}�|��j�|���}�|�d�k�r�t�j�t�j���}�|�d�k�rQt�j�d�d���\�} �}�t�|���}�t�j�| ���qQn��|�t�k�r�t�j�d�d���\�}�}�t�|���t�|���}�}�nZ�|�t�k�rt �j �|��j������}�n6�t�|�t ���r<t �j �|���}�n�t �j �|�j������}�|��j�|���}�|�d�k�r�t�j�t�j���} �| �d�k�rpt�j�d�d���\�} �} �t�| ���} �t�j�| ���qpn��|�t�k�rt�j�d�d���\�}�} �t�|���t�| ���}�} �no�|�t�k�r|�} �nZ�|�t�k�r:t �j �|��j������} �n6�t�|�t ���r[t �j �|���} �n�t �j �|�j������} �|��j�| ���} �|�|�|�|�|�| �f�S(���u|���Construct and return tuple with IO objects: p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite i���i����Ni����i����i����i����i����i����(���i����i����i����i����i����i����i����i����(���i����i����i����i����(���i����i����i����i����(���i����i����(���u���Noneu���_winapiu���GetStdHandleu���STD_INPUT_HANDLEu ���CreatePipeu���Handleu���CloseHandleu���PIPEu���DEVNULLu���msvcrtu ���get_osfhandleu���_get_devnullu ���isinstanceu���intu���filenou���_make_inheritableu���STD_OUTPUT_HANDLEu���STD_ERROR_HANDLEu���STDOUT(���u���selfu���stdinu���stdoutu���stderru���p2creadu���p2cwriteu���c2preadu���c2pwriteu���errreadu���errwriteu���_(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_get_handles���sn����$ u���Popen._get_handlesc�������������C���s7���t��j�t��j����|�t��j����d�d�t��j���}�t�|���S(���u2���Return a duplicate of handle, which is inheritablei����i���(���u���_winapiu���DuplicateHandleu���GetCurrentProcessu���DUPLICATE_SAME_ACCESSu���Handle(���u���selfu���handleu���h(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_make_inheritable��s ����u���Popen._make_inheritablec�������������C���s����t��j�j�t��j�j�t�j�d�����d���}�t��j�j�|���s��t��j�j�t��j�j�t�j���d���}�t��j�j�|���s��t �d�����q��n��|�S(���u,���Find and return absolut path to w9xpopen.exei����u���w9xpopen.exeuZ���Cannot locate w9xpopen.exe, which is needed for Popen to work with your shell or platform.( ���u���osu���pathu���joinu���dirnameu���_winapiu���GetModuleFileNameu���existsu���sysu���base_exec_prefixu���RuntimeError(���u���selfu���w9xpopen(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_find_w9xpopen ��s���� u���Popen._find_w9xpopenc�������������C���sW��|�s�t��d�����t�|�t���s1�t�|���}�n��|�d �k�rI�t����}�n��d�|�|�|�f�k�r��|�j�t�j�O_�|�|�_ �|�|�_ �|�|�_�n��| �r8|�j�t�j�O_�t�j �|�_�t�j�j�d�d���}�d�j�|�|���}�t�j����d�k�s t�j�j�|���j����d�k�r8|��j����}�d�|�|�f�}�| �t�j�O} �q8n��z|�y>�t�j�|�|�d �d �t�|���| �|�|�|�� �\�}�}�}�}�Wn7�t�j�k �r�}�z�t�|�j������WYd �d �}�~�Xn�XWd �|�d�k�r�|�j����n��|�d �k�r�|�j����n��|�d�k�r|�j����n��t �|��d ���r$t�j!�|��j"���n��Xd�|��_$�t%�|���|��_&�|�|��_'�t�j(�|���d �S(���u$���Execute program (MS Windows version)u"���pass_fds not supported on Windows.i���u���COMSPECu���cmd.exeu ���{} /c "{}"l��������u���command.comu���"%s" %sNu���_devnulli����i����i����i����T()���u���AssertionErroru ���isinstanceu���stru���list2cmdlineu���Noneu���STARTUPINFOu���dwFlagsu���_winapiu���STARTF_USESTDHANDLESu ���hStdInputu ���hStdOutputu ���hStdErroru���STARTF_USESHOWWINDOWu���SW_HIDEu���wShowWindowu���osu���environu���getu���formatu ���GetVersionu���pathu���basenameu���loweru���_find_w9xpopenu���CREATE_NEW_CONSOLEu ���CreateProcessu���intu ���pywintypesu���erroru���WindowsErroru���argsu���Closeu���hasattru���closeu���_devnullu���Trueu���_child_createdu���Handleu���_handleu���pidu���CloseHandle(���u���selfu���argsu ���executableu ���preexec_fnu ���close_fdsu���pass_fdsu���cwdu���envu���startupinfou ���creationflagsu���shellu���p2creadu���p2cwriteu���c2preadu���c2pwriteu���errreadu���errwriteu���unused_restore_signalsu���unused_start_new_sessionu���comspecu���w9xpopenu���hpu���htu���pidu���tidu���e(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_execute_child��sT���� & u���Popen._execute_childc�������������C���sF���|��j��d�k�r?�|�|��j�d���|�k�r?�|�|��j���|��_��q?�n��|��j��S(���u����Check if child process has terminated. Returns returncode attribute. This method is called by __del__, so it can only refer to objects in its local scope. i����N(���u ���returncodeu���Noneu���_handle(���u���selfu ���_deadstateu���_WaitForSingleObjectu���_WAIT_OBJECT_0u���_GetExitCodeProcess(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_internal_pollm��s����u���Popen._internal_pollc�������������C���s����|�d�k �r�|��j�|���}�n��|�d�k�r6�t�j�}�n�t�|�d���}�|��j�d�k�r��t�j�|��j�|���}�|�t�j�k�r��t �|��j �|�����n��t�j�|��j���|��_�n��|��j�S(���uO���Wait for child process to terminate. Returns returncode attribute.i���N(���u���Noneu���_remaining_timeu���_winapiu���INFINITEu���intu ���returncodeu���WaitForSingleObjectu���_handleu���WAIT_TIMEOUTu���TimeoutExpiredu���argsu���GetExitCodeProcess(���u���selfu���timeoutu���endtimeu���timeout_millisu���result(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���wait~��s���� u ���Popen.waitc�������������C���s!���|�j��|�j������|�j����d��S(���N(���u���appendu���readu���close(���u���selfu���fhu���buffer(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu ���_readerthread���s����u���Popen._readerthreadc�������������C���s���|��j��rh�t�|��d���rh�g��|��_�t�j�d�|��j�d�|��j��|��j�f���|��_�d�|��j�_�|��j�j ����n��|��j �r��t�|��d���r��g��|��_�t�j�d�|��j�d�|��j �|��j�f���|��_�d�|��j�_�|��j�j ����n��|��j �rs|�d��k �rcy�|��j �j�|���Wqct�k �r_}�zD�|�j�t�j�k�r#n*�|�j�t�j�k�rJ|��j����d��k �rJn����WYd��d��}�~�XqcXn��|��j �j����n��|��j��d��k �r�|��j�j�|��j�|�����|��j�j����r�t�|��j�|�����q�n��|��j �d��k �r|��j�j�|��j�|�����|��j�j����rt�|��j�|�����qn��d��}�d��}�|��j��r?|��j�}�|��j��j����n��|��j �ra|��j�}�|��j �j����n��|�d��k �rz|�d�}�n��|�d��k �r�|�d�}�n��|�|�f�S(���Nu���_stdout_buffu���targetu���argsu���_stderr_buffi����T(���u���stdoutu���hasattru���_stdout_buffu ���threadingu���Threadu ���_readerthreadu ���stdout_threadu���Trueu���daemonu���startu���stderru���_stderr_buffu ���stderr_threadu���stdinu���Noneu���writeu���IOErroru���errnou���EPIPEu���EINVALu���pollu���closeu���joinu���_remaining_timeu���is_aliveu���TimeoutExpiredu���args(���u���selfu���inputu���endtimeu���orig_timeoutu���eu���stdoutu���stderr(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_communicate���sZ���� u���Popen._communicatec�������������C���s����|�t��j�k�r�|��j����ne�|�t��j�k�rD�t�j�|��j�t��j���n=�|�t��j�k�rl�t�j�|��j�t��j���n�t�d�j �|�������d�S(���u)���Send a signal to the process u���Unsupported signal: {}N( ���u���signalu���SIGTERMu ���terminateu���CTRL_C_EVENTu���osu���killu���pidu���CTRL_BREAK_EVENTu ���ValueErroru���format(���u���selfu���sig(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���send_signal���s���� u���Popen.send_signalc�������������C���s`���y�t��j�|��j�d���WnB�t�k �r[�t��j�|��j���}�|�t��j�k�rN����n��|�|��_�Yn�Xd�S(���u#���Terminates the process i���N(���u���_winapiu���TerminateProcessu���_handleu���PermissionErroru���GetExitCodeProcessu���STILL_ACTIVEu ���returncode(���u���selfu���rc(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu ���terminate���s���� u���Popen.terminatec������� ������C���s���d�\�}�}�d�\�}�}�d �\�}�} �|�d�k�r3�n]�|�t�k�rQ�t����\�}�}�n?�|�t�k�rl�|��j����}�n$�t�|�t���r��|�}�n�|�j����}�|�d�k�r��n]�|�t�k�r��t����\�}�}�n?�|�t�k�r��|��j����}�n$�t�|�t���r��|�}�n�|�j����}�|�d�k�rnr�|�t�k�r)t����\�}�} �nT�|�t�k�r>|�} �n?�|�t�k�rY|��j����} �n$�t�|�t���rq|�} �n�|�j����} �|�|�|�|�|�| �f�S(���u|���Construct and return tuple with IO objects: p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite i���i����i����(���i����i����i����i����(���i����i����i����i����(���i����i����N( ���u���Noneu���PIPEu���_create_pipeu���DEVNULLu���_get_devnullu ���isinstanceu���intu���filenou���STDOUT( ���u���selfu���stdinu���stdoutu���stderru���p2creadu���p2cwriteu���c2preadu���c2pwriteu���errreadu���errwrite(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_get_handles���sF���� c�������������C���si���d�}�x=�t��|���D]/�}�|�|�k�r�t�j�|�|���|�d�}�q�q�W|�t�k�re�t�j�|�t���n��d��S(���Ni���i���(���u���sortedu���osu ���closerangeu���MAXFD(���u���selfu���fds_to_keepu���start_fdu���fd(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu ���_close_fds)��s����u���Popen._close_fdsc�������%���/������s���t��|�t�t�f���r!�|�g�}�n�t�|���}�| �rY�d�d�g�|�}����rY����|�d�<qY�n�����d�k�rr�|�d����n�����}�t����\�}�}�zvzC|�d�k �rg��}�xk�|�j����D]T�\�}�}�t�j�|���}�d�|�k�r��t �d�����n��|�j �|�d�t�j�|�����q��Wn�d�}�t�j���������t�j�j������r:���f�}�n(�t ����f�d�d����t�j�|���D����}�t�|���}�|�j�|���t�j�|�|�|�t�|���|�|�|�|�| �|�|�|�|�|�|�|�|���|��_�d�|��_�Wd�t�j�|���Xt�|��d �d���}�|�d�k�r$|�d�k�r$|�|�k�r$t�j�|���n��|�d�k�rX| �d�k�rX|�|�k�rXt�j�|���n��|�d�k�r�|�d�k�r�|�|�k�r�t�j�|���n��|�d�k �r�t�j�|���n��d�|��_�t����}�x?�t�t�j�|�d���}�|�|�7}�|�s�t�|���d�k�r�Pq�q�Wd�t�j�|���X|�r�y�t�t�j�|��j�d���Wn=�t�k �rm}�z�|�j �t �j!�k�r[���n��WYd�d�}�~�Xn�Xy�|�j"�d�d ���\�}�} �}!�Wn.�t �k �r�d�}�d�} �d�t#�|���}!�Yn�Xt�t$�|�j%�d���t&���}"�|!�j%�d�d���}!�t'�|"�t���r�| �r�t(�| �d���}#�|!�d�k�}$�|$�r*d�}!�n��|#�d�k�r�t�j)�|#���}!�|#�t �j*�k�r�|$�rq|!�d�t#�|���7}!�q�|!�d�t#�|���7}!�q�n��|"�|#�|!�����n��|"�|!�����n��d�S(���u���Execute program (POSIX version)u���/bin/shu���-ci����s���=u!���illegal environment variable namec�������������3���s-���|��]#�}�t��j�j�t��j�|��������Vq�d��S(���N(���u���osu���pathu���joinu���fsencode(���u���.0u���dir(���u ���executable(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu ���<genexpr>d��s���u'���Popen._execute_child.<locals>.<genexpr>Nu���_devnulli���iP���s���:i���s���RuntimeErrors���0s���Bad exception data from child: u���asciiu���errorsu ���surrogatepassi���u���noexecu����u���: Ti����i����i����i����i����i����(+���u ���isinstanceu���stru���bytesu���listu���Noneu���_create_pipeu���itemsu���osu���fsencodeu ���ValueErroru���appendu���pathu���dirnameu���tupleu ���get_exec_pathu���setu���addu���_posixsubprocessu ���fork_execu���sortedu���pidu���Trueu���_child_createdu���closeu���getattru���_closed_child_pipe_fdsu ���bytearrayu���_eintr_retry_callu���readu���lenu���waitpidu���OSErroru���errnou���ECHILDu���splitu���repru���builtinsu���decodeu���RuntimeErroru ���issubclassu���intu���strerroru���ENOENT(%���u���selfu���argsu ���executableu ���preexec_fnu ���close_fdsu���pass_fdsu���cwdu���envu���startupinfou ���creationflagsu���shellu���p2creadu���p2cwriteu���c2preadu���c2pwriteu���errreadu���errwriteu���restore_signalsu���start_new_sessionu���orig_executableu���errpipe_readu ���errpipe_writeu���env_listu���ku���vu���executable_listu���fds_to_keepu ���devnull_fdu���errpipe_datau���partu���eu���exception_nameu ���hex_errnou���err_msgu���child_exception_typeu ���errno_numu���child_exec_never_called(����(���u ���executableu/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_execute_child3��s����� % $$$ c�������������C���sM���|�|���r�|�|���|��_��n*�|�|���r=�|�|���|��_��n�t�d�����d��S(���Nu���Unknown child exit status!(���u ���returncodeu���RuntimeError(���u���selfu���stsu���_WIFSIGNALEDu ���_WTERMSIGu ���_WIFEXITEDu���_WEXITSTATUS(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_handle_exitstatus���s ����u���Popen._handle_exitstatusc������� ������C���s����|��j��d�k�r��y;�|�|��j�|���\�}�}�|�|��j�k�rI�|��j�|���n��Wq��|�k �r��}�z8�|�d�k �rw�|�|��_��n�|�j�|�k�r��d�|��_��n��WYd�d�}�~�Xq��Xn��|��j��S(���u����Check if child process has terminated. Returns returncode attribute. This method is called by __del__, so it cannot reference anything outside of the local scope (nor can any methods it calls). i����N(���u ���returncodeu���Noneu���pidu���_handle_exitstatusu���errno( ���u���selfu ���_deadstateu���_waitpidu���_WNOHANGu ���_os_erroru���_ECHILDu���pidu���stsu���e(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_internal_poll���s���� "c�������������C���s{���y"�t��t�j�|��j�|���\�}�}�WnL�t�k �rp�}�z,�|�j�t�j�k�rO����n��|��j�}�d�}�WYd��d��}�~�Xn�X|�|�f�S(���Ni����(���u���_eintr_retry_callu���osu���waitpidu���pidu���OSErroru���errnou���ECHILD(���u���selfu ���wait_flagsu���pidu���stsu���e(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu ���_try_wait���s����" u���Popen._try_waitc�������������C���s���|��j��d�k �r�|��j��S|�d�k �s.�|�d�k �rk�|�d�k�rJ�t����|�}�qk�|�d�k�rk�|��j�|���}�qk�n��|�d�k �r2d�}�x��|��j�t�j���\�}�}�|�|��j�k�s��|�d�k�s��t���|�|��j�k�r��|��j �|���Pn��|��j�|���}�|�d�k�r t �|��j�|�����n��t�|�d�|�d���}�t �j�|���q��nJ�xG�|��j��d�k�r{|��j�d���\�}�}�|�|��j�k�r5|��j �|���q5q5W|��j��S(���uO���Wait for child process to terminate. Returns returncode attribute.g����Mb@?i����i���g�������?N(���u ���returncodeu���Noneu���_timeu���_remaining_timeu ���_try_waitu���osu���WNOHANGu���pidu���AssertionErroru���_handle_exitstatusu���TimeoutExpiredu���argsu���minu���timeu���sleep(���u���selfu���timeoutu���endtimeu���delayu���pidu���stsu ���remaining(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���wait���s2����! c�������������C���s1��|��j��r9�|��j�r9�|��j��j����|�s9�|��j��j����q9�n��t�r]�|��j�|�|�|���\�}�}�n�|��j�|�|�|���\�}�}�|��j�d�|��j�|�����|�d��k �r��d�j �|���}�n��|�d��k �r��d�j �|���}�n��|��j�r'|�d��k �r��|��j�|�|��j �j���}�n��|�d��k �r'|��j�|�|��j�j���}�q'n��|�|�f�S(���Nu���timeouts����(���u���stdinu���_communication_startedu���flushu���closeu ���_has_pollu���_communicate_with_pollu���_communicate_with_selectu���waitu���_remaining_timeu���Noneu���joinu���universal_newlinesu���_translate_newlinesu���stdoutu���encodingu���stderr(���u���selfu���inputu���endtimeu���orig_timeoutu���stdoutu���stderr(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_communicate��s,���� c�������������C���sd���|��j��r`�|��j�d��k�r`�d�|��_�|�|��_�|��j�r`�|�d��k �r`�|��j�j�|��j��j���|��_�q`�n��d��S(���Ni����(���u���stdinu���_inputu���Noneu ���_input_offsetu���universal_newlinesu���encodeu���encoding(���u���selfu���input(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_save_input2��s ���� u���Popen._save_inputc����������!������sS��d��}�d��}���j�s!�i����_�n��t�j������������f�d�d����}������f�d�d����}���j�r|�|�r|�|���j�t�j���n����j�s��i����_���j�r��g����j���j�j ����<n����j �r��g����j���j �j ����<q��n��t�j�t�j�B}���j�r|���j�|�����j���j�j ����}�n����j �rI|���j �|�����j���j �j ����}�n����j �|�����j�rqt���j���} �n��x���j�rH��j�|���} �| �d��k �r�| �d�k��r�t���j�|�����n��y����j�| ���}�WnG�t�j�k �r}�z$�|�j�d�t�j�k�r�wtn�����WYd��d��}�~�Xn�X��j�|�|���x|�D]\�} �}�|�t�j�@r�| ���j���j�t���}�y���j�t�j�| �|���7_�WnG�t�k �r�}�z'�|�j�t�j�k�r�|�| ���n����WYd��d��}�~�XqAX��j�t���j���k�rA|�| ���qAq-|�|�@r7t�j�| �d���}�|�s |�| ���n����j�| �j�|���q-|�| ���q-WqtW|�|�f�S(���Nc����������������s-������j��|��j����|���|����j�|��j����<d��S(���N(���u���registeru���filenou���_fd2file(���u���file_obju ���eventmask(���u���polleru���self(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���register_and_appendE��s����u9���Popen._communicate_with_poll.<locals>.register_and_appendc����������������s2������j��|������j�|��j������j�j�|����d��S(���N(���u ���unregisteru���_fd2fileu���closeu���pop(���u���fd(���u���polleru���self(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���close_unregister_and_removeI��s���� uA���Popen._communicate_with_poll.<locals>.close_unregister_and_removei����i����( ���u���Noneu���_communication_startedu���_fd2fileu���selectu���pollu���stdinu���POLLOUTu ���_fd2outputu���stdoutu���filenou���stderru���POLLINu���POLLPRIu���_save_inputu���_inputu ���memoryviewu���_remaining_timeu���TimeoutExpiredu���argsu���erroru���errnou���EINTRu���_check_timeoutu ���_input_offsetu ���_PIPE_BUFu���osu���writeu���OSErroru���EPIPEu���lenu���readu���append(���u���selfu���inputu���endtimeu���orig_timeoutu���stdoutu���stderru���register_and_appendu���close_unregister_and_removeu���select_POLLIN_POLLPRIu ���input_viewu���timeoutu���readyu���eu���fdu���modeu���chunku���data(����(���u���polleru���selfu/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_communicate_with_poll=��sn���� u���Popen._communicate_with_pollc����������$���C���s���|��j��s��g��|��_�g��|��_�|��j�r@�|�r@�|��j�j�|��j���n��|��j�r_�|��j�j�|��j���n��|��j�r��|��j�j�|��j���q��n��|��j�|���d��}�d��}�|��j�r��|��j��s��g��|��_ �n��|��j �}�n��|��j�r��|��j��s��g��|��_ �n��|��j �}�n��x�|��j�s|��j�r�|��j�|���}�|�d��k �r?|�d�k��r?t�|��j �|�����n��y+�t�j�|��j�|��j�g��|���\�}�}�} �WnG�t�j�k �r�} �z$�| �j �d�t�j�k�r�w��n�����WYd��d��} �~ �Xn�X|�p�|�p�| �s�t�|��j �|�����n��|��j�|�|���|��j�|�k�r�|��j�|��j�|��j�t���}�y�t�j�|��j�j����|���}�Wn]�t�k �r�} �z=�| �j�t�j�k�r�|��j�j����|��j�j�|��j���n����WYd��d��} �~ �Xq�X|��j�|�7_�|��j�t�|��j���k�r�|��j�j����|��j�j�|��j���q�n��|��j�|�k�rFt�j�|��j�j����d���} �| �s6|��j�j����|��j�j�|��j���n��|�j�| ���n��|��j�|�k�r��t�j�|��j�j����d���} �| �s�|��j�j����|��j�j�|��j���n��|�j�| ���q��q��W|�|�f�S(���Ni����i���(���u���_communication_startedu ���_read_setu ���_write_setu���stdinu���appendu���stdoutu���stderru���_save_inputu���Noneu���_stdout_buffu���_stderr_buffu���_remaining_timeu���TimeoutExpiredu���argsu���selectu���erroru���errnou���EINTRu���_check_timeoutu���_inputu ���_input_offsetu ���_PIPE_BUFu���osu���writeu���filenou���OSErroru���EPIPEu���closeu���removeu���lenu���read(���u���selfu���inputu���endtimeu���orig_timeoutu���stdoutu���stderru���timeoutu���rlistu���wlistu���xlistu���eu���chunku ���bytes_writtenu���data(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���_communicate_with_select���sz���� u���Popen._communicate_with_selectc�������������C���s���t��j�|��j�|���d�S(���u)���Send a signal to the process N(���u���osu���killu���pid(���u���selfu���sig(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���send_signal���s����c�������������C���s���|��j��t�j���d�S(���u/���Terminate the process with SIGTERM N(���u���send_signalu���signalu���SIGTERM(���u���self(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu ���terminate���s����c�������������C���s���|��j��t�j���d�S(���u*���Kill the process with SIGKILL N(���u���send_signalu���signalu���SIGKILL(���u���self(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���kill���s����u ���Popen.killNFi����T(4���u���__name__u ���__module__u���__qualname__u���Falseu���_child_createdu���Noneu���_PLATFORM_DEFAULT_CLOSE_FDSu���Trueu���__init__u���_translate_newlinesu ���__enter__u���__exit__u���sysu���maxsizeu���__del__u���_get_devnullu���communicateu���pollu���_remaining_timeu���_check_timeoutu ���mswindowsu���_get_handlesu���_make_inheritableu���_find_w9xpopenu���_execute_childu���_winapiu���WaitForSingleObjectu ���WAIT_OBJECT_0u���GetExitCodeProcessu���_internal_pollu���waitu ���_readerthreadu���_communicateu���send_signalu ���terminateu���killu ���_close_fdsu���osu���WIFSIGNALEDu���WTERMSIGu ���WIFEXITEDu���WEXITSTATUSu���_handle_exitstatusu���waitpidu���WNOHANGu���erroru���errnou���ECHILDu ���_try_waitu���_save_inputu���_communicate_with_pollu���_communicate_with_select(���u ���__locals__(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���Popen���sb��� � 2H RB 3 } '$RRi����i����i����(@���u���__doc__u���sysu���platformu ���mswindowsu���iou���osu���timeu ���tracebacku���gcu���signalu���builtinsu���warningsu���errnou ���monotonicu���_timeu���ImportErroru ���Exceptionu���SubprocessErroru���CalledProcessErroru���TimeoutExpiredu ���threadingu���msvcrtu���_winapiu���STARTUPINFOu ���pywintypesu���selectu���hasattru ���_has_pollu���_posixsubprocessu���cloexec_pipeu���_create_pipeu���getattru ���_PIPE_BUFu���__all__u���CREATE_NEW_CONSOLEu���CREATE_NEW_PROCESS_GROUPu���STD_INPUT_HANDLEu���STD_OUTPUT_HANDLEu���STD_ERROR_HANDLEu���SW_HIDEu���STARTF_USESTDHANDLESu���STARTF_USESHOWWINDOWu���extendu���intu���Handleu���sysconfu���MAXFDu���_activeu���_cleanupu���PIPEu���STDOUTu���DEVNULLu���_eintr_retry_callu���_args_from_interpreter_flagsu���Noneu���callu ���check_callu���check_outputu���list2cmdlineu���getstatusoutputu ���getoutputu���objectu���_PLATFORM_DEFAULT_CLOSE_FDSu���Popen(����(����(����u/���/opt/alt/python33/lib64/python3.3/subprocess.pyu���<module>T��sr��� : *I