← back to Atmos Game
assets/gen/.venv/lib/python3.12/site-packages/httpcore/_backends/__pycache__/trio.cpython-312.pyc
57 lines
�
c�bjl � � � d dl mZ d dlZd dlZd dlZddlmZmZmZm Z m
Z
mZmZm
Z
ddlmZmZmZ G d� de� Z G d � d
e� Zy)� )�annotationsN� )�ConnectError�ConnectTimeout�ExceptionMapping� ReadError�ReadTimeout�
WriteError�WriteTimeout�map_exceptions� )�
SOCKET_OPTION�AsyncNetworkBackend�AsyncNetworkStreamc �\ � e Zd Zd d�Zd
dd�Zd
dd�Zd
d�Z d dd�Zdd�Zdd�Z y)�
TrioStreamc � � || _ y �N)�_stream��self�streams �n/Users/macstudio3/Projects/atmos-game/assets/gen/.venv/lib/python3.12/site-packages/httpcore/_backends/trio.py�__init__zTrioStream.__init__ s � ���� Nc � � K � |�t d� n|}t j t t j t
t j t
i}t |� 5 t j |� 5 | j j |�� � d { ��� }|cd d d � cd d d � S 7 �# 1 sw Y nxY w d d d � y # 1 sw Y y xY w�w)N�inf)� max_bytes)�float�trio�TooSlowErrorr �BrokenResourceErrorr �ClosedResourceErrorr �
fail_afterr �receive_some)r r �timeout�timeout_or_inf�exc_map�datas r �readzTrioStream.read s� � �� �)0���u��g�����{��$�$�i��$�$�i�%
��
�G�
$�����0�$(�L�L�$=�$=� �$=�$R�R��� 1�0� %�
$�R�� 1�0��0� %�
$�
$�sN �AC�C�1 B,�B*�B,� C�
C�*B,�,B5 �1C�9 C�C�Cc � � K � |sy |�t d� n|}t j t t j t
t j t
i}t |� 5 t j |� 5 | j j |�� � d { ��� d d d � d d d � y 7 �# 1 sw Y �xY w# 1 sw Y y xY w�w)Nr )r) )r r r! r r"