ok
Direktori : /opt/alt/python38/lib64/python3.8/site-packages/cffi/__pycache__/ |
Current File : //opt/alt/python38/lib64/python3.8/site-packages/cffi/__pycache__/verifier.cpython-38.pyc |
U ل=^�+ � @ s� d dl Z d dlZd dlZd dlZd dlZddlmZ ddlmZ ddlm Z e j dkrhd dlZdd� Z nd dlZd d� Z e j d kr�ejZnG dd� dej�ZG d d� de�ZdZdd� Zdadd� Zdd� Zddd�Zdd� Zdd� ZdS )� N� )�__version_verifier_modules__)�ffiplatform)�VerificationError)� r c C s t jjd d � S �N)� importlib� machinery�EXTENSION_SUFFIXES� r r �/verifier.py�_extension_suffixes s r c C s dd� t �� D �S )Nc S s g | ]\}}}|t jkr|�qS r )�impZC_EXTENSION)�.0�suffix�_�typer r r � <listcomp> s �z'_extension_suffixes.<locals>.<listcomp>)r Zget_suffixesr r r r r s �r c s e Zd Z� fdd�Z� ZS )�NativeIOc s( t |t�r|�d�}tt| ��|� d S )N�ascii)� isinstanceZunicode�encode�superr �write)�self�s�� __class__r r r s zNativeIO.write)�__name__� __module__�__qualname__r � __classcell__r r r r r s r c @ sz e Zd Zddd�Zd dd�Zd d � Zdd� Zd d� Zdd� Zdd� Z dd� Z dd� Zdd� Zd!dd�Z dd� Zdd� ZdS )"�VerifierN� F�.cc K sv |j jrtd|j jf ��|| _|| _|s4t�|�}t||�} | | �| _| j� |� | | _ | �|| �| _|rz|rxt d��n�d�tjd d� t||g|j �}tjdkr�|�d�}tt�|dd d� �d @ �}|�d ��d�}tt�|dd d� �d @ �}|�d ��d�}d|| jj||f }t� d }|�p0t� | _tj�| j|| �| _ tj�| j|| �| _!|| _"d| _#d| _$d S )NzKfeature not supported with ffi.verify(), but only with ffi.set_source(): %sz)can't specify both 'modulename' and 'tag'� r r zutf-8r � l �� Z0x�Lr �0z_cffi_%s_%s%s%sF)%Z_parserZ_uses_new_featurer �ffi�preambler Zflatten�_locate_engine_class�_vengineZpatch_extension_kwds�flags�make_relative_to�kwds� TypeError�join�sys�versionr Z_cdefsources�version_infor �hex�binasciiZcrc32�lstrip�rstripZ _class_key�_get_so_suffixes�_caller_dir_pycache�tmpdir�os�path�sourcefilename�modulefilename�ext_package�_has_source�_has_module)r r* r+ r<