| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Python312/Lib/site-packages/mock/__pycache__/ |
Upload File : |
�
��Hg�
� � � d dl Z e j dd dk r3d dlZd dlZd dlmZ d dlmZmZm Z d dl
mZ d� Zd� Z
d � Z G d
� de� Zyd dlmZ d d
l
mZ y)� N� )� � )�
_is_coroutine)�ismethod�
isfunction�CO_COROUTINE)�TestCasec � � t | t j � r'| j } t | t j � r�'| S �N)�
isinstance� functools�partial�func)r s �0C:\Python312\Lib\site-packages\mock/backports.py�_unwrap_partialr s2 � ���y�0�0�1��9�9�D� ��y�0�0�1��� c � � t | � r| j } t | � r�t | � } t | � syt | j
j |z � S )z�Return true if ``f`` is a function (or a method or functools.partial
wrapper wrapping a function) whose code object has the given ``flag``
set in its flags.F)r �__func__r r �bool�__code__�co_flags)�f�flags r �_has_code_flagr sK � � �q�k��
�
�A� �q�k��A����!�}���A�J�J�'�'�$�.�/�/r c �L � t | t � xs t | dd� t u S )z}Return true if the object is a coroutine function.
Coroutine functions are defined with "async def" syntax.
r N)r r �getattrr )�objs r �iscoroutinefunctionr s* � �
�3��-�
A��C��$�/�=�@�
r c �>