403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/_pytest/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/_pytest/__pycache__/compat.cpython-39.pyc
a

05d�3�@s.UdZddlmZddlZddlZddlZddlZddlZddlZddlm	Z	ddlm
Z
ddlmZddl
mZddl
mZdd	l
mZdd
l
mZddl
mZddl
mZddlZdd
l
mZer�ddlmZed�Zed�ZejjZddd�dd�ZGdd�dej�Zej Z!de"d<ej#dk�r6ddl$Z%e%j&Z'nddl'Z'ddd�dd�Z(d d!d�d"d#�Z)d d!d�d$d%�Z*d d!d�d&d'�Z+djd(dd)�d*d+�Z,d,d-�d.d/�Z-d0d1dd2�ddd!d3d4d5�d6d7�Z.dd4d8�d9d:�Z/d;d<�e0d=�D�Z1e1�2e3d>�d?e3d@�dAe3dB�dCi�dddD�dEdF�Z4e5e6fZ7dGddH�dIdJ�Z8dKddH�dLdM�Z9ej:GdNdO�dO��Z;dPdQ�Z<dRdS�Z=dTdU�Z>dVddVdVdW�dXdY�Z?d d!dZ�d[d\�Z@e�r�ej#dk�r�dd]l
mAZAndd]lmAZAn"ej#dk�r�dd]l
mAZAnd^d_�ZAej#dk�r�dd`lmBZBnGdadb�dbeeef�ZBdcd-�ddde�ZCdfdfdg�dhdi�ZDdS)kz"Python version compatibility code.�)�annotationsN)�	Parameter)�	signature)�Path)�Any)�Callable)�Generic)�NoReturn)�
TYPE_CHECKING)�TypeVar)�overload)�Final�_T�_Szstr | os.PathLike[str]�LEGACY_PATH)�path�returncCst|�S)zBInternal wrapper to prepare lazy proxies for legacy_path instances)r)r�r�2/usr/lib/python3.9/site-packages/_pytest/compat.py�legacy_path0src@seZdZdZdS)�
NotSetTyperN)�__name__�
__module__�__qualname__�tokenrrrrr8srr
�NOTSET)��zCallable[..., Any]�str��funcrcCstt|��S�N)rr�r rrr�_format_argsEsr#�object�boolcCst�|�}|ot|�Sr!)�inspectZisgeneratorfunction�iscoroutinefunction)r Zgenfuncrrr�is_generatorIs
r(cCst�|�pt|dd�S)a{Return True if func is a coroutine function (a function defined with async
    def syntax, and doesn't contain yield), or a function decorated with
    @asyncio.coroutine.

    Note: copied and modified from Python 3.5's builtin couroutines.py to avoid
    importing asyncio directly, which in turns also initializes the "logging"
    module as a side-effect (see issue #8).
    Z
_is_coroutineF)r&r'�getattrr"rrrr'Ns	r'cCst|�pt�|�S)zZReturn True if the given function seems to be an async function or
    an async generator.)r'r&Zisasyncgenfunctionr"rrr�is_async_functionZsr*z
str | None)�curdirrcCsht|�}tt�|��}|jj}|durXz|�|�}WntyFYn0d||dfSd||dfS)Nz%s:%d�)�
get_real_funcrr&Zgetfile�__code__�co_firstlineno�relative_to�
ValueError)�functionr+�fn�linenoZrelfnrrr�getlocation`sr5�int)rcsXt|dd�}|sdSttj�d�dt���ttj�d�dt���t��fdd�|D��S)	z>Return number of arguments used up by mock arguments (if any).�	patchingsNrZmockZDEFAULTz
unittest.mockcs*g|]"}|js|j�us"|j�ur|�qSr)Zattribute_name�new��.0�p�Z
mock_sentinelZut_mock_sentinelrr�
<listcomp>xs�z'num_mock_patch_args.<locals>.<listcomp>)r)�sys�modules�getr$�len)r2r7rr<r�num_mock_patch_argsns��rB�F)�name�	is_method�clsztype | Noneztuple[str, ...])r2rDrErFrc
Cs�zt|�j}WnLttfyZ}z0ddlm}|d|�d|��dd�WYd}~n
d}~00tdd	�|��D��}|s||j}|s�|r�t	t
j||dd
�t�s�|dd�}t
|d�r�|t|�d�}|S)
aLReturn the names of a function's mandatory arguments.

    Should return the names of all function arguments that:
    * Aren't bound to an instance or type as in instance or class methods.
    * Don't have default values.
    * Aren't bound with functools.partial.
    * Aren't replaced with mocks.

    The is_method and cls arguments indicate that the function should
    be treated as a bound method even though it's not unless, only in
    the case of cls, the function is a static method.

    The name parameter should be the original name in which the function was collected.
    r)�failz!Could not determine arguments of z: F)ZpytraceNcss8|]0}|jtjus|jtjur|jtjur|jVqdSr!��kindrZPOSITIONAL_OR_KEYWORDZKEYWORD_ONLY�default�emptyrDr9rrr�	<genexpr>�s
�z"getfuncargnames.<locals>.<genexpr>)rJr,�__wrapped__)r�
parametersr1�	TypeError�_pytest.outcomesrG�tuple�valuesr�
isinstancer&Zgetattr_static�staticmethod�hasattrrB)r2rDrErFrN�erG�	arg_namesrrr�getfuncargnames�s0��	���
rX)r2rcCstdd�t|�j��D��S)Ncss2|]*}|jtjtjfvr|jtjur|jVqdSr!rHr9rrrrL�s�z(get_default_arg_names.<locals>.<genexpr>)rQrrNrR)r2rrr�get_default_arg_names�s�rYcCs(i|] }|tdd�vr|d|d���qS)� �z\xZ02x)�range)r:�irrr�
<dictcomp>�sr^��	z\t�
z\r�
z\n)�srcCs
|�t�Sr!)�	translate�$_non_printable_ascii_translate_table)rcrrr�_translate_non_printable�srf�bytes)�valrcCs|�dd�S)N�ascii�backslashreplace)�decode)rhrrr�_bytes_to_ascii�srlzbytes | strcCs,t|t�rt|�}n|�d��d�}t|�S)aIf val is pure ASCII, return it as an str, otherwise, escape
    bytes objects into a sequence of escaped bytes:

    b'\xc3\xb4\xc5\xd6' -> r'\xc3\xb4\xc5\xd6'

    and escapes unicode objects into a sequence of escaped unicode
    ids, e.g.:

    r'4\nV\U00043efa\x0eMXWB\x1e\u3028\u15fd\xcd\U0007d944'

    Note:
       The obvious "v.decode('unicode-escape')" will return
       valid UTF-8 unicode if it finds them in bytes, but we
       want to return escaped bytes for any byte, even if they match
       a UTF-8 string.
    Zunicode_escaperi)rSrgrl�encoderkrf)rh�retrrr�
ascii_escaped�s

roc@seZdZUdZded<dS)�_PytestWrappera%Dummy wrapper around a function object for internal use only.

    Used to correctly unwrap the underlying function object when we are
    creating fixtures, because we wrap the function object ourselves with a
    decorator to issue warnings when the fixture function is called directly.
    r�objN)rrr�__doc__�__annotations__rrrrrp�s
rpcCs�|}td�D]@}t|dd�}t|t�r0|j}qtt|dd�}|durHqt|}qddlm}tdj||�||�d���t|t	j
�r�|j}|S)	zjGet the real function object of the (possibly) wrapped object by
    functools.wraps or functools.partial.�dZ__pytest_wrapped__NrMr)�safereprz<could not find real function of {start}
stopped at {current})�start�current)r\r)rSrprqZ_pytest._io.safereprrur1�format�	functools�partialr )rqZ	start_objr]Znew_objrurrrr-
s&
��r-cCsTzt|d�}t|�}Wnty,|YS0|rPt|d�rPt|j�rP|�|�}|S)z�Attempt to obtain the real function object that might be wrapping
    ``obj``, while at the same time returning a bound method to ``holder`` if
    the original object was a bound method.�__func__�__get__)rUr-�	Exception�callabler|)rqZholderrErrr�get_real_method's


rcCs$z|jWSty|YS0dSr!)r{�AttributeErrorr"rrr�	getimfunc5sr�r)r$rDrJrcCs6ddlm}zt|||�WS|y0|YS0dS)aRLike getattr but return default upon any Exception or any OutcomeException.

    Attribute access can potentially fail for 'evil' Python objects.
    See issue #214.
    It catches OutcomeException because of #2490 (issue #580), new outcomes
    are derived from BaseException instead of Exception (for more details
    check #2707).
    r)�TEST_OUTCOMEN)rPr�r))r$rDrJr�rrr�safe_getattr<s
	r�)rqrcCs&zt�|�WSty YdS0dS)z0Ignore any exception via isinstance on Python 3.FN)r&Zisclassr})rqrrr�safe_isclassMsr�)�finalcCs|Sr!r)�frrrr�^sr�)�cached_propertyc@sZeZdZdZddd�dd�Zedddd	d
�dd��Zedd
ddd
�dd��Zddd�ZdS)r��r rrzCallable[[_S], _T]�NonercCs||_|j|_dSr!r�)�selfr rrr�__init__iszcached_property.__init__.ztype[_S] | Nonezcached_property[_S, _T])�instance�ownerrcCsdSr!r�r�r�r�rrrr|mszcached_property.__get__rrcCsdSr!rr�rrrr|ssNcCs(|dur|S|�|�}|j|jj<|Sr!)r �__dict__r)r�r�r��valuerrrr|ws).).)N)rrr�	__slots__r�rr|rrrrr�fs�r�z
int | NonecCs&tjdvrdSt��}|dkr"|SdS)zYReturn the current user id, or None if we cannot get it reliably on the current platform.)�win32Z
emscriptenN���)r>�platform�os�getuid)�uidrrr�get_user_id~s
r�r	)r�rcCs$ds Jd|�dt|�j�d���dS)NFzUnhandled value: z (�))�typer)r�rrr�assert_never�sr�)N)ErrZ
__future__rZdataclasses�enumryr&r�r>rr�pathlibr�typingrrrr	r
r�pyrZtyping_extensionsr
rrr�localrr�Enumrrrrs�version_info�importlib.metadata�	importlib�metadataZimportlib_metadatar#r(r'r*r5rBrXrYr\re�update�ordrfrgrZSTRING_TYPESrlroZ	dataclassrpr-rr�r�r�r�r�r�r�rrrr�<module>s�
�F��+

Youez - 2016 - github.com/yon3zu
LinuXploit