CQdZddlmZmZmZddlmZddlmZ gdZ Gdde Z Gdd e e j ZGd d e Zd S) aException 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_importdivisionunicode_literals)standard_library)response)URLError HTTPErrorContentTooShortErrorceZdZddZdZdS)rNc:|f|_||_| ||_dSdSN)argsreasonfilename)selfrrs o/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/future/backports/urllib/error.py__init__zURLError.__init__ s+G   $DMMM cd|jzS)Nz)rrs r__str__zURLError.__str__&s#dk11rr )__name__ __module__ __qualname__rrrrrrs7 %%%% 22222rrcReZdZdZejjZdZdZe dZ dZ dS)r zBRaised when HTTP error occurs, but also acts like non-error returnc||_||_||_||_||_||||||dSdSr )codemsghdrsfpr_HTTPError__super_init)rurlrrr r!s rrzHTTPError.__init__-sS   >   b$T 2 2 2 2 2 >rc&d|jd|jS)Nz HTTP Error z: )rrrs rrzHTTPError.__str__:s&*iii::rc|jSr )rrs rrzHTTPError.reason?s xrc|jSr )r rs rinfozHTTPError.infoCs yrN) rrr__doc__urllib_response addinfourlrr"rpropertyrr'rrrr r )smLL"-6L 3 3 3;;; Xrr ceZdZdZdS)r cJt||||_dSr )rrcontent)rmessager.s rrzContentTooShortError.__init__Is#$((( rN)rrrrrrrr r Hs#rr N)r( __future__rrrfuturerfuture.backports.urllibrr)__all__IOErrorrr*r r rrrr5s  CBBBBBBBBB######?????? < ; ; 2 2 2 2 2w 2 2 2/4>8r