Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/zmq/backend/cffi/__pycache__/context.cpython-39.pyc
Ðазад
a a�h| � @ sV d Z ddlmZmZ ddlmZmZmZ ddlm Z m Z mZ G dd� de�Z dgZdS ) zzmq Context class� )�C�ffi)�EINVAL� IO_THREADS�LINGER� )�ZMQError�InterruptedSystemCall� _check_rcc @ sV e Zd ZdZdZdZdZddd�Zedd� �Z edd � �Z d d� Zdd � Zdd� Z dS )�ContextNFr c C sp |rt �d|�| _d| _n d| _|dks0tt��t�� | _| jt jkrRtt� � ��|sft� | jt|� d| _d S )Nzvoid *TFr ) r �cast�_zmq_ctx�_shadowr r r Zzmq_ctx_newZNULLZ zmq_errno�zmq_ctx_setr �_closed)�selfZ io_threadsZshadow� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/zmq/backend/cffi/context.py�__init__ s zContext.__init__c C s t t�d| j��S )z,The address of the underlying libzmq contextZsize_t)�intr r r �r r r r � underlying$ s zContext.underlyingc C s | j S )N)r r r r r �closed) s zContext.closedc C s t �| j||�}t|� dS )z>set a context option see zmq_ctx_set N)r r r r )r �option�value�rcr r r �set- s zContext.setc C s t �| j|�}t|� |S )z<get context option see zmq_ctx_get )r Zzmq_ctx_getr r )r r r r r r �get5 s zContext.getc C sF | j r d S t�| j�}zt|� W n ty4 Y n0 d | _d| _d S )NT)r r Zzmq_ctx_destroyr r r r )r r r r r �term>