0
     	ˆÁÀÅ607¿ÄÃ _    	‹      Õ–]oÚ0†ïû+<_ì¡-ÓhðÔ¤¡Q@”iš¦©2±!V;²Œþú98m³	4*µ½:ÇÉŸ÷qü¾‹FÝé�q}™^ÐøÛçA¿‹pàûi šFþÅY½ ô†áÄÚ¼°^¯ëëÓºÒ˜N ±YzÆjÛ:³““°xFNP˜pÊ\D¡6å¤/ÿ�Ô�ZZ#?ƒ\«l¢�°fx:­”³1ÀøJÄÜ¹åd<SzS†V¤b¼Q6ƒÓ _Â…²j8SlS˜	^¶°ë‹HgÛúEªIh´¢©XÈ¶*Ç$Ùw0ˆXI³”ÊÛúBÌ1¢©íàŸýîè—Ó9SÅ×$¤È¹›wð§ngx1êD˜iÆC »5WNs‰É€‹2ÅÄ\p¶W|íÅ×ân‡‘×DÜÄZäV(ù(‡XE�UjrêXÏA¢«*/aÿÿ5ãËIo8�ú?$¬èâÑÝ³ýFLÆTsiQ$4�­{U2ú‚ïåÌä÷MTh±H,&ÕÐNå°ç*e\WÁ÷!ßûõ±êò[ÍF³U‚ZðÚ�B/è)o¥ZË*€›;”L…ä˜øx @³‰š�vó|/€Û™¾¾"@žlÌ�ŸU˜ToE›bI²Í�äðE‘«5×nQøøþ_yQh·­Šƒ“‡ôX~Ã0Œ¥Ö!lÃ±Ø?|™å¬<$ÂCþ·Ø%_¹³Ÿà•çQÑ»¹S’L*�—ŸSÞe ¼å…°½\†àoº ñûF?L    C   ˆl–Ðz¾”ê_)%‚fãaS�ÿ�þ_O¬Ü qº)üÿÇ„eÖšÆ_ŠI|¥�+Wé3ž¯ÆÅ ?÷     import os
import sys
import time
import pty
import tty
import errno
import signal
from contextlib import contextmanager

import pipenv.vendor.ptyprocess as ptyprocess
from pipenv.vendor.ptyprocess.ptyprocess import use_native_pty_fork

from .exceptions import ExceptionPexpect, EOF, TIMEOUT
from .spawnbase import SpawnBase
from .utils import (
    which, split_command_line, select_ignore_interrupts, poll_ignore_interrupts
)

@contextmanager
def _wrap_ptyprocess_err():
    """Turn ptyprocess errors into our own ExceptionPexpect errors"""
    try:
        yield
    except ptyprocess.PtyProcessError as e:
        raise ExceptionPexpect(*e.args)

PY3 = (sys.version_info[0] >= 3)

class spawn(SpawnBase):
    '''This is the main class interface for Pexpect. Use this class to start
    and control child applications. '''

    # This is purely informational now - changing it has no effect
    use_native_pty_fork = use_native_pty_fork

    def __init__(self, command, args=[], timeout=30, maxread=2000,
                 searchwindowsize=None, logfile=None, cwd=None, env=None,
                 ignore_sighup=False, echo=True, preexec_fn=None,
                 encoding=None, codec_errors='strict', dimensions=None,
                 use_poll=False):
        '''This is the constructor. The command parameter may be a string that
        includes a command and any arguments to the command. For example::

            child = pexpect.spawn('/usr/bin/ftp')
            child = pexpect.spawn('/usr/bin/ssh user@example.com')
            child = pexpect.spawn('ls -latr /tmp')

        You may also construct it with a list of arguments like so::

            child = pexpect.spawn('/usr/bin/ftp', [])
            child = pexpect.spawn('/usr/bin/ssh', ['user@example.com'])
            child = pexpect.spawn('ls', ['-latr', '/tmp'])

        After this the child application will be created and will be ready to
        talk to. For normal use, see expect() and send() and sendline().

        Remember that Pexpect does NOT interpret shell meta characters such as
        redirect, pipe, or wild cards (``>``, ``|``, or ``*``). This is a
        common mistake.  If you want to run a command and pipe it through
        another command then you must also start a shell. For example::

            child = pexpect.spawn('/bin/bash -c "ls -l | grep LOG > logs.txt"')
            child.expect(pexpect.EOF)

        The second form of spawn (where you pass a list of arguments) is useful
        in situations where you wish to spawn a command and pass it its own
        argument list. This can make syntax more clear. For example, the
        following is equivalent to the previous example::

            shell_cmd = 'ls -l | grep LOG > logs.txt'
            child = pexpect.spawn('/bin/bash', ['-c', shell_cmd])
            child.expect(pexpect.EOF)

        The maxread attribute sets the read buffer size. This is maximum number
        of bytes that Pexpect will try to read from a TTY at one time. Setting
        the maxread size to 1 will turn off buffering. Setting the maxread
        value higher may help performance in cases where large amounts of
        output are read back from the child. This feature is useful in
        conjunction with searchwindowsize.

        When the keyword argument *searchwindowsize* is None (default), the
        full buffer i