ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     
V~gc           @   s   d  Z  d d l m Z d d l Z d d l Z d d d g Z d Z d Z d	 Z d Z d
   Z	 d   Z
 d   Z d   Z d   Z d   Z d   Z e e d  Z e e d  Z d S(   s   Pseudo terminal utilities.i(   t   selectNt   openptyt   forkt   spawni    i   i   c          C   sM   y t  j   SWn t t f k
 r' n Xt   \ }  } t |  } |  | f S(   sd   openpty() -> (master_fd, slave_fd)
    Open a pty master/slave pair, using os.openpty() if possible.(   t   osR   t   AttributeErrort   OSErrort   _open_terminalt
   slave_open(   t	   master_fdt
   slave_namet   slave_fd(    (    s(   /opt/alt/python27/lib64/python2.7/pty.pyR      s    c          C   s]   y t  j   \ }  } Wn t t f k
 r/ n' Xt  j |  } t  j |  |  | f St   S(   s   master_open() -> (master_fd, slave_name)
    Open a pty master and return the fd, and the filename of the slave end.
    Deprecated, use openpty() instead.(   R   R   R   R   t   ttynamet   closeR   (   R	   R   R
   (    (    s(   /opt/alt/python27/lib64/python2.7/pty.pyt   master_open!   s    
c          C   s   y d d l  }  Wn t k
 r# nO Xy" |  j t j d d  \ } } Wn t k
 rg } t j |  n X| | f Sxo d D]g } x^ d D]V } d | | } y t j | t j  } Wn t j k
 r q n X| d | | f SWqy Wt j d	  d S(
   sl   Open pty master and return (master_fd, tty_name).
    SGI and generic BSD version, for when openpty() fails.iNi  i    t   pqrstuvwxyzPQRSTt   0123456789abcdefs   /dev/ptys   /dev/ttys   out of pty devices(   t   sgit   ImportErrort   _getptyR   t   O_RDWRt   IOErrort   errort   open(   R   t   tty_nameR	   t   msgt   xt   yt   pty_namet   fd(    (    s(   /opt/alt/python27/lib64/python2.7/pty.pyR   1   s$    "
c         C   s   t  j |  t  j  } y d d l m } m } Wn t k
 rC | SXy$ | | | d  | | | d  Wn t k
 r{ n X| S(   s   slave_open(tty_name) -> slave_fd
    Open the pty slave and acquire the controlling terminal, returning
    opened filedescriptor.
    Deprecated, use openpty() instead.i(   t   ioctlt   I_PUSHt   ptemt   ldterm(   R   R   R   t   fcntlR   R   R   R   (   R   t   resultR   R   (    (    s(   /opt/alt/python27/lib64/python2.7/pty.pyR   H   s    c          C   s:  y t  j   \ }  } Wn t t f k
 r/ n< X|  t k ra y t  j   Wqa t k
 r] qa Xn  |  | f St   \ } } t  j   }  |  t k r#t  j   t  j |  t  j	 | t
  t  j	 | t  t  j	 | t  | t k r t  j |  n  t  j t  j t  t  j  } t  j |  n t  j |  |  | f S(   sd   fork() -> (pid, master_fd)
    Fork and make the child a session leader with a controlling terminal.(   R   t   forkptyR   R   t   CHILDt   setsidR   R   R   t   dup2t   STDIN_FILENOt   STDOUT_FILENOt   STDERR_FILENOR   R   R   (   t   pidR   R	   R   t   tmp_fd(    (    s(   /opt/alt/python27/lib64/python2.7/pty.pyR   Z   s0    

c         C   s3   x, | d k r. t  j |  |  } | | } q Wd S(   s#   Write all the data to a descriptor.t    N(   R   t   write(   R   t   datat   n(    (    s(   /opt/alt/python27/lib64/python2.7/pty.pyt   _writen   s    c         C   s   t  j |  d  S(   s   Default read function.i   (   R   t   read(   R   (    (    s(   /opt/alt/python27/lib64/python2.7/pty.pyt   _read   s    c         C   s   |  t  g } x t r t | g  g   \ } } } |  | k rq | |   } | s^ | j |   qq t j t |  n  t  | k r | t   } | s | j t   q t |  |  q q Wd S(   s   Parent copy loop.
    Copies
            pty master -> standard output   (master_read)
            standard input -> pty master    (stdin_read)N(   R(   t   TrueR    t   removeR   R.   R)   R1   (   R	   t   master_readt
   stdin_readt   fdst   rfdst   wfdst   xfdsR/   (    (    s(   /opt/alt/python27/lib64/python2.7/pty.pyt   _copy   s    	c         C   s   t  |   t  d  k r$ |  f }  n  t   \ } } | t k rV t j |  d |   n  y& t j t  } t j t  d } Wn t j	 k
 r d } n Xy t
 | | |  Wn6 t t f k
 r | r t j t t j |  q n Xt j |  d S(   s   Create a spawned process.R-   i    i   N(   t   typeR   R%   R   t   execlpt   ttyt	   tcgetattrR(   t   setrawR   R<   R   R   t	   tcsetattrt	   TCSAFLUSHR   (   t   argvR6   R7   R+   R	   t   modet   restore(    (    s(   /opt/alt/python27/lib64/python2.7/pty.pyR      s"    

(   t   __doc__R    R   R?   t   __all__R(   R)   R*   R%   R   R   R   R   R   R1   R3   R<   R   (    (    (    s(   /opt/alt/python27/lib64/python2.7/pty.pyt   <module>   s"   					(		