Edit file File name : popen2.pyc Content :� �bc @ sV d Z d d l Z d d l Z d d l Z e j d e d d �d d d g Z y e j d � Z Wn e e f k r� d Z n Xg Z d � Z d d d � � YZ d e f d � � YZ e j d d k s� e j d k r[ [ d d d � Z d d d � Z d d d � Z n@ d d d � Z d d d � Z d d d � Z e j d d g � d S( sn Spawn 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����Ns<