Uname : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
Soft : Apache
Ip : 203.161.60.200
Port : 443
~
/
opt
/
alt
/
python311
/
lib64
/
python3.11
/
urllib
/
__pycache__
[ HOME ]
Exec
Submit
File Name : error.cpython-311.pyc
� �,do � � � d Z ddlZddlZg d�Z G d� de� � Z G d� deej j � � Z G d� d e� � Z dS ) a� Exception classes raised by urllib. The base exception class is URLError, which inherits from OSError. 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. � N)�URLError� HTTPError�ContentTooShortErrorc � � e Zd Zdd�Zd� ZdS )r Nc �: � |f| _ || _ |� || _ d S d S �N)�args�reason�filename)�selfr r s �3/opt/alt/python311/lib64/python3.11/urllib/error.py�__init__zURLError.__init__ s+ � ��G�� ������$�D�M�M�M� �� c � � d| j z S )Nz<urlopen error %s>)r �r s r �__str__zURLError.__str__ s � �#�d�k�1�1r r )�__name__� __module__�__qualname__r r � r r r r s7 � � � � � �%� %� %� %�2� 2� 2� 2� 2r r c � � e Zd ZdZej j j Zd� Zd� Z d� Z ed� � � Zed� � � Z e j d� � � Z dS ) r zBRaised when HTTP error occurs, but also acts like non-error returnc � � || _ || _ || _ || _ || _ |�t j � � }| � ||||� � d S r )�code�msg�hdrs�fpr �io�BytesIO�_HTTPError__super_init)r �urlr r r r s r r zHTTPError.__init__'