https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/future/backports/urllib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/future/backports/urllib/__pycache__/error.cpython-310.pyc
o

,�]�
�@spdZddlmZmZmZddlmZddlmZ	gd�Z
Gdd�de�ZGdd	�d	ee	j
�ZGd
d�de�ZdS)
a�Exception classes raised by urllib.

The base exception class is URLError, which inherits from IOError.  It
doesn't define any behavior of its own, but is the base class for all
exceptions defined in this package.

HTTPError is an exception class that is also a valid HTTP response
instance.  It behaves this way because HTTP protocol errors are valid
responses, with a status code, headers, and a body.  In some contexts,
an application may want to handle an exception like a regular
response.
�)�absolute_import�division�unicode_literals)�standard_library)�response)�URLError�	HTTPError�ContentTooShortErrorc@seZdZddd�Zdd�ZdS)rNcCs$|f|_||_|dur||_dSdS�N)�args�reason�filename)�selfrr
�r�?/usr/lib/python3/dist-packages/future/backports/urllib/error.py�__init__ s

�zURLError.__init__cCs
d|jS)Nz<urlopen error %s>)r�rrrr�__str__&s
zURLError.__str__r
)�__name__�
__module__�__qualname__rrrrrrrs
rc@s<eZdZdZejjZdd�Zdd�Ze	dd��Z
dd	�Zd
S)rzBRaised when HTTP error occurs, but also acts like non-error returncCs>||_||_||_||_||_|dur|�||||�dSdSr
)�code�msg�hdrs�fpr
�_HTTPError__super_init)r�urlrrrrrrrr-s�zHTTPError.__init__cCsd|j|jfS)NzHTTP Error %s: %s)rrrrrrr:szHTTPError.__str__cC�|jSr
)rrrrrr?szHTTPError.reasoncCrr
)rrrrr�infoCszHTTPError.infoN)rrr�__doc__�urllib_response�
addinfourlrrr�propertyrrrrrrr)s

rc@seZdZdd�ZdS)r	cCst�||�||_dSr
)rr�content)r�messager#rrrrIs
zContentTooShortError.__init__N)rrrrrrrrr	Hsr	N)r�
__future__rrr�futurer�future.backports.urllibrr �__all__�IOErrorrr!rr	rrrr�<module>s

https://t.me/RX1948 - 2025