HEX
Server: Apache
System: Linux www3.pit.tblive.com 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User: awaldron (1020)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/local/lib/python3.9/site-packages/future/backports/urllib/__pycache__/error.cpython-39.pyc
a

F�Eg�
�@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||_dS�N)�args�reason�filename)�selfrr
�r�G/usr/local/lib/python3.9/site-packages/future/backports/urllib/error.py�__init__ szURLError.__init__cCs
d|jS)Nz<urlopen error %s>)r�rrrr�__str__&szURLError.__str__)N)�__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:||_||_||_||_||_|dur6|�||||�dSr
)�code�msg�hdrs�fpr
�_HTTPError__super_init)r�urlrrrrrrrr-szHTTPError.__init__cCsd|j|jfS)NzHTTP Error %s: %s)rrrrrrr:szHTTPError.__str__cCs|jSr
)rrrrrr?szHTTPError.reasoncCs|jSr
)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	Hsr	N)r�
__future__rrr�futurerZfuture.backports.urllibrr�__all__�IOErrorrr rr	rrrr�<module>s