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 : |
o ,�]� � @ sp d Z ddlmZmZmZ ddlmZ ddlmZ g d�Z G dd� de�ZG dd � d ee j �ZG d d� de�ZdS ) 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 @ s e Zd Zddd�Zdd� ZdS )r Nc C s$ |f| _ || _|d ur|| _d S d S �N)�args�reason�filename)�selfr r � r �?/usr/lib/python3/dist-packages/future/backports/urllib/error.py�__init__ s �zURLError.__init__c C s d| j S )Nz<urlopen error %s>)r �r r r r �__str__&