| Server IP : 162.19.112.25 / Your IP : 216.73.217.36 Web Server : LiteSpeed System : Linux qamar.tasjeel.ae 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : archiart ( 1428) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/mock/__pycache__/ |
Upload File : |
�
gP|��h� � � d dl Z e j dd� dk r7d dlZd dlZd dlmZ d dlmZmZm Z d dl
mZ d� Zd� Z
d � Z G d
� de� � ZdS d dlmZ d d
l
mZ dS )� N� )� � )�
_is_coroutine)�ismethod�
isfunction�CO_COROUTINE)�TestCasec �| � t | t j � � r!| j } t | t j � � �!| S �N)�
isinstance� functools�partial�func)r s �`/builddir/build/BUILD/cloudlinux-venv-1.0.11/venv/lib/python3.11/site-packages/mock/backports.py�_unwrap_partialr s: � ���y�0�1�1� ��9�D� ��y�0�1�1� ��� c �� � t | � � r| j } t | � � �t | � � } t | � � sdS t | 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 sa � � �q�k�k� ��
�A� �q�k�k� ��A�����!�}�}� ��5��A�J�'�$�.�/�/�/r c �\ � t | t � � pt | 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 s0 � �
�3��-�-�
A��C��$�/�/�=�@�
r c �>