Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/cheroot/__pycache__/errors.cpython-39.pyc
Ðазад
a p�h� � @ s� d Z ddlZddlZG dd� de�ZG dd� de�ZG dd� de�Zd d � Zedd�Zed dddddddddddddddd�Z e � d� e � d� ed d!d"�Zejd#kr�e � ed$�� e� ed$�� ejejejejhZeefZdS )%z<Collection of exceptions raised and/or processed by Cheroot.� Nc @ s e Zd ZdZdS )�MaxSizeExceededz�Exception raised when a client sends more data then allowed under limit. Depends on ``request.body.maxbytes`` config option if used within CherryPy. N��__name__� __module__�__qualname__�__doc__� r r �~/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/cheroot/errors.pyr s r c @ s e Zd ZdZdS )� NoSSLErrorz>Exception raised when a client speaks HTTP to an HTTPS socket.Nr r r r r r s r c @ s e Zd ZdZdS )� FatalSSLAlertzCException raised when the SSL implementation signals a fatal alert.Nr r r r r r s r c G s dh}dd� | D �}t || �S )a Return error numbers for all errors in ``errnames`` on this platform. The :py:mod:`errno` module contains different global constants depending on the specific platform (OS). This function will return the list of numeric values for a given list of potential names. Nc S s h | ]}t t|d ��qS )N)�getattr�errno)�.0�kr r r � <setcomp> � z'plat_specific_errors.<locals>.<setcomp>)�list)ZerrnamesZmissing_attrZunique_numsr r r �plat_specific_errors s r ZEINTRZWSAEINTR�EPIPE�EBADFZWSAEBADF�ENOTSOCKZWSAENOTSOCKZ ETIMEDOUTZWSAETIMEDOUTZECONNREFUSEDZWSAECONNREFUSED� ECONNRESETZ WSAECONNRESET�ECONNABORTEDZWSAECONNABORTEDZ ENETRESETZWSAENETRESETZ EHOSTDOWNZEHOSTUNREACHz timed outzThe read operation timed out�EAGAIN�EWOULDBLOCKZWSAEWOULDBLOCK�darwin� EPROTOTYPE)r r �sys� Exceptionr r r r Zsocket_error_eintrZsocket_errors_to_ignore�appendZsocket_errors_nonblocking�platform�extend�ENOTCONNr � ESHUTDOWNr Z$acceptable_sock_shutdown_error_codes�BrokenPipeError�ConnectionResetErrorZ#acceptable_sock_shutdown_exceptionsr r r r �<module> s>