Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/pexpect/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/pexpect/__pycache__/utils.cpython-310.pyc
o

��!^��@s�ddlZddlZddlZddlZddlZddlZzeWney(ejZYnwej	ddkr4e
fZnee
fZdd�Z
d
dd�Zdd�Zd
d	d
�Zd
dd�ZdS)�N�cCshtj�|�}tj�|�sdSt�|�j}tj�d�r-t�	�dkr-t
|tjtjBtj
B@�St�|tj�S)z�Checks that path is an executable regular file, or a symlink towards one.

    This is roughly ``os.path isfile(path) and os.access(path, os.X_OK)``.
    F�sunosr)�os�path�realpath�isfile�stat�st_mode�sys�platform�
startswith�getuid�bool�S_IXUSR�S_IXGRP�S_IXOTH�access�X_OK)r�fpath�mode�r�//usr/lib/python3/dist-packages/pexpect/utils.py�is_executable_files��rcCsvtj�|�dkrt|�r|S|durtj}|�d�}|stj}|�tj�}|D]}tj�	||�}t|�r8|Sq'dS)z�This takes a given filename; tries to find it in the environment path;
    then checks if it is executable. This returns the full path to the filename
    if found and executable. Otherwise this returns None.�N�PATH)
rr�dirnamer�environ�get�defpath�split�pathsep�join)�filename�env�p�pathlistr�ffrrr�which0s
�r'c
Csg}d}d}d}d}d}d}|}|D]c}	||ks||krK|	dkr#|}q|	dkr*|}q|	d	kr1|}q|	��rD||kr:q|�|�d}|}q||	}|}q||krV||	}|}q||krf|	dkra|}q||	}q||kru|	d	krq|}q||	}q|dkr|�|�|S)
aThis splits a command line into a list of arguments. It splits arguments
    on spaces, but handles embedded quotes, doublequotes, and escaped
    characters. It's impossible to do this with a regular expression, so I
    wrote a little state machine to parse the command line. rr��r��\�'�")�isspace�append)
�command_line�arg_list�arg�state_basic�	state_esc�state_singlequote�state_doublequote�state_whitespace�state�crrr�split_command_lineEsN

�
r:cCs�|dur
t��|}	z	t�||||�WStyBt��d}|jdtjkr?|dur>|t��}|dkr>gggfYSn�Ynwq)z�This is a wrapper around select.select() that ignores signals. If
    select.select raises a select.error exception and errno is an EINTR
    error then it is ignored. Mainly this is used to ignore sigwinch
    (terminal resize). NTr(r)�time�select�InterruptedErrorr
�exc_info�args�errno�EINTR)�iwtd�owtd�ewtd�timeout�end_time�errrrr�select_ignore_interrupts�s"	����rHcCs�|dur
t��|}t��}|D]}|�|tjtjBtjBtjB�q	z|dur+dn|d}|�|�}dd�|D�WStyft	�
�d}|jdtj
krc|durb|t��}|dkrbgYSn�Ynwq$)zOSimple wrapper around poll to register file descriptors and
    ignore signals.NTi�cSsg|]\}}|�qSrr)�.0�afd�_rrr�
<listcomp>�sz*poll_ignore_interrupts.<locals>.<listcomp>r(r)r;r<�poll�register�POLLIN�POLLPRI�POLLHUP�POLLERRr=r
r>r?r@rA)�fdsrErF�poller�fd�
timeout_ms�resultsrGrrr�poll_ignore_interrupts�s,"
����rX)N)rr
rr<r;r@r=�	NameError�error�version_info�str�string_types�unicoderr'r:rHrXrrrr�<module>s&
�

=

Spamworldpro Mini