관리-도구
편집 파일: error.cpython-37.opt-1.pyc
B �A�[� � @ sr d Z ddlmZmZmZ ddlmZ ddlmZ dddgZ G dd� de�ZG d d� dee 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 k r|| _d S )N)�args�reason�filename)�selfr r � r �N/opt/alt/python37/lib/python3.7/site-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__&