Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/urllib3/__pycache__/exceptions.cpython-39.pyc
Ðазад
a ^�h � @ s\ d dl mZ ddlmZ G dd� de�ZG dd� de�ZG dd � d e�Z G d d� de �Z G dd � d e�ZG dd� de�ZG dd� de�Z G dd� de�ZeZG dd� de �ZG dd� de �ZG dd� de�ZG dd� de�ZG dd� dee �ZG dd� de�ZG d d!� d!ee �ZG d"d#� d#e �ZG d$d%� d%e �ZG d&d'� d'ee�ZG d(d)� d)e�ZG d*d+� d+e�ZG d,d-� d-e�ZG d.d/� d/e�ZG d0d1� d1e�ZG d2d3� d3e�Z G d4d5� d5e�Z!G d6d7� d7e�Z"G d8d9� d9e�Z#G d:d;� d;e�Z$G d<d=� d=ee�Z%G d>d?� d?e�Z&G d@dA� dAee�ZG dBdC� dCe�Z'G dDdE� dEe(e�Z)G dFdG� dGe�Z*G dHdI� dIe�Z+dJS )K� )�absolute_import� )�IncompleteReadc @ s e Zd ZdZdS )� HTTPErrorz#Base exception used by this module.N��__name__� __module__�__qualname__�__doc__� r r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/urllib3/exceptions.pyr s r c @ s e Zd ZdZdS )�HTTPWarningz!Base warning used by this module.Nr r r r r r s r c @ s e Zd ZdZdd� Zdd� ZdS )� PoolErrorz/Base exception for errors caused within a pool.c C s || _ t�| d||f � d S )Nz%s: %s)�poolr �__init__)�selfr �messager r r r s zPoolError.__init__c C s | j dfS )N)NN�� __class__�r r r r � __reduce__ s zPoolError.__reduce__N�r r r r r r r r r r r s r c @ s e Zd ZdZdd� Zdd� ZdS )�RequestErrorz8Base exception for PoolErrors that have associated URLs.c C s || _ t�| ||� d S �N)�urlr r )r r r r r r r r s zRequestError.__init__c C s | j d | jd ffS r )r r r r r r r $ s zRequestError.__reduce__Nr r r r r r s r c @ s e Zd ZdZdS )�SSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nr r r r r r ) s r c s e Zd ZdZ� fdd�Z� ZS )� ProxyErrorz,Raised when the connection to a proxy fails.c s$ t t| �j||g|�R � || _d S r )�superr r �original_error)r r �error�argsr r r r 1 s zProxyError.__init__�r r r r r � __classcell__r r r r r . s r c @ s e Zd ZdZdS )�DecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nr r r r r r# 6 s r# c @ s e Zd ZdZdS )� ProtocolErrorz>Raised when something unexpected happens mid-request/response.Nr r r r r r$ ; s r$ c @ s e Zd ZdZddd�ZdS )� MaxRetryErrora Raised when the maximum number of retries is exceeded. :param pool: The connection pool :type pool: :class:`~urllib3.connectionpool.HTTPConnectionPool` :param string url: The requested Url :param exceptions.Exception reason: The underlying error Nc C s&