Your IP : 18.118.28.31
�
c��f�L � � � d dl mZmZ d dlmZ d dlmZ d dlZd dlZd dl Z dZ
dZd� Z edg d �� � Z
d
e
_ de
j _ de
j _ d
e
j _ de
j _ G d� de� � Z G d� de�� � Z G d� de� � Z G d� de� � Z G d� de� � Z eed� � r G d� de� � Z eed� � r G d� de� � Z eed � � r G d!� d"e� � Z eed#� � r G d$� d%e� � Zd&� Z ed#� � reZdS ed� � reZdS ed � � reZdS ed� � reZdS eZdS )'� )�ABCMeta�abstractmethod)�
namedtuple)�MappingN� � c �J � t | t � � r| }na t | � � � � � }n># t t t
f$ r$ t d� | � � � � d �w xY w|dk r"t d� |� � � � �|S )NzInvalid file object: {!r}r zInvalid file descriptor: {})�
isinstance�int�fileno�AttributeError� TypeError�
ValueError�format)�fileobj�fds �0/opt/alt/python311/lib64/python3.11/selectors.py�_fileobj_to_fdr s� � �
� �'�3��� ?�
��� ?��W�^�^�%�%�&�&�B�B��� �:�6� ?� ?� ?�� $�$*�F�7�O�O�5� 5�:>�
?� ?����
�A�v�v��6�=�=�b�A�A�B�B�B�
�Is �!= �;A8�SelectorKey)r r �events�dataz�SelectorKey(fileobj, fd, events, data)
Object used to associate a file object to its backing
file descriptor, selected event mask, and attached data.
zFile object registered.zUnderlying file descriptor.z3Events that must be waited for on this file object.zvOptional opaque data associated to this file object.
For example, this could be used to store a per-client session ID.c �( � e Zd Z d� Zd� Zd� Zd� ZdS )�_SelectorMappingc � � || _ d S �N)� _selector)�self�selectors r �__init__z_SelectorMapping.__init__? s
� �!����� c �4 � t | j j � � S r )�lenr �
_fd_to_key�r s r �__len__z_SelectorMapping.__len__B s � ��4�>�,�-�-�-r c � � | j � |� � }| j j | S # t $ r$ t d� |� � � � d �w xY w�N�{!r} is not registered)r �_fileobj_lookupr# �KeyErrorr )r r r s r �__getitem__z_SelectorMapping.__getitem__E sk � � O���/�/��8�8�B��>�,�R�0�0��� O� O� O��3�:�:�7�C�C�D�D�$�N� O���s �+. �.Ac �4 � t | j j � � S r )�iterr r# r$ s r �__iter__z_SelectorMapping.__iter__L s � ��D�N�-�.�.�.r N)�__name__�
__module__�__qualname__r r% r+ r. � r r r r <