Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/zmq/__pycache__/error.cpython-39.pyc
Ðазад
a a�h� � @ s� d Z ddlmZ G dd� de�ZG dd� de�ZG dd� de�ZG d d � d e�ZG dd� de�ZG d d� de�Z ze W n ey� eZ Y n0 G dd� dee �Z ddd�ZdadaG dd� de�Zddd�Zg d�ZdS )z 0MQ Error classes and functions.� )�EINTRc @ s e Zd ZdZdS )�ZMQBaseErrorz.Base exception class for 0MQ errors in Python.N��__name__� __module__�__qualname__�__doc__� r r �y/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/zmq/error.pyr s r c @ s. e Zd ZdZdZd dd�Zdd� Zdd� ZdS ) �ZMQErrorz�Wrap an errno style error. Parameters ---------- errno : int The ZMQ errno or None. If None, then ``zmq_errno()`` is called and used. msg : string Description of the error or None. Nc C sh ddl m}m} |du r|� }t|t�rJ|| _|du rB||�| _qd|| _n|du r^t|�| _n|| _dS )a Wrap an errno style error. Parameters ---------- errno : int The ZMQ errno or None. If None, then ``zmq_errno()`` is called and used. msg : string Description of the error or None. r )�strerror� zmq_errnoN)�zmq.backendr r � isinstance�int�errno�str)�selfr �msgr r r r r �__init__ s zZMQError.__init__c C s | j S �N)r �r r r r �__str__9 s zZMQError.__str__c C s d| j jt| �f S )Nz%s('%s'))� __class__r r r r r r �__repr__<