| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.6/urllib/__pycache__/ |
Upload File : |
3 �1�aQ � @ sP d Z ddlZdddgZG dd� de�ZG dd� deejj�ZG dd� de�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 @ s e Zd Zddd�Zdd� ZdS )r Nc C s |f| _ || _|d k r|| _d S )N)�args�reason�filename)�selfr r � r �/usr/lib/python3.6/error.py�__init__ s zURLError.__init__c C s d| j S )Nz<urlopen error %s>)r )r r r r �__str__ s zURLError.__str__)N)�__name__� __module__�__qualname__r r r r r r r s c @ sX e Zd ZdZejjjZdd� Zdd� Z dd� Z edd � �Zed d� �Z e jdd� �Z d S )r zBRaised when HTTP error occurs, but also acts like non-error returnc C s: || _ || _|| _|| _|| _|d k r6| j||||� d S )N)�code�msg�hdrs�fpr �_HTTPError__super_init)r Zurlr r r r r r r r '