Ë ‚Ö¦i×L ã ót — d Z ddlmZmZ ddlmZ ddlmZ ddlZddl Z ddl Z dZdZd„ Z ed g d ¢« Zde_ dej _ d ej _ dej" _ dej$ _ G d„ de« Z G d„ de¬« Z G d„ de« Z G d„ de« Z G d„ de« Z ee d« r G d„ de« Z ee d« r G d„ d e« Z ee d!« r G d"„ d#e« Z ee d$« r G d%„ d&e« Zd'„ Z ed$« reZy ed« reZy ed!« reZy ed« reZyeZy)(z|Selectors module. This module allows high-level and efficient I/O multiplexing, built upon the `select` module primitives. é )ÚABCMetaÚabstractmethod)Ú namedtuple)ÚMappingNé é c ó — t | t « r| }n t | j « « }|dk rt dj |« « ‚|S # t t t f$ r t dj | « « d‚w xY w)zÕReturn a file descriptor from a file object. Parameters: fileobj -- file object or file descriptor Returns: corresponding file descriptor Raises: ValueError if the object is invalid zInvalid file object: {!r}Nr zInvalid file descriptor: {})Ú isinstanceÚintÚfilenoÚAttributeErrorÚ TypeErrorÚ ValueErrorÚformat)ÚfileobjÚfds ú"/usr/lib64/python3.12/selectors.pyÚ_fileobj_to_fdr s„ € ô �'œ3ÔØ ‰ð ?Ü�W—^‘^Ó%Ó&ˆBð ˆA‚vÜÐ6×=Ñ=¸bÓAÓBÐBØ €Iøô ¤ ¬:Ð6ò ?Üð $ß$*¡F¨7£Oó5Ø:>ð ?ð ?ús •A Á0A?Ú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 ZdZd„ Zd„ Zd„ Zd„ Zy)Ú_SelectorMappingz)Mapping of file objects to selector keys.c ó — || _ y ©N)Ú _selector)ÚselfÚselectors r Ú__init__z_SelectorMapping.__init__? s € Ø!ˆ�ó c ó@ — t | j j « S r )Úlenr Ú _fd_to_key©r s r Ú__len__z_SelectorMapping.__len__B s € Ü�4—>‘>×,Ñ,Ó-Ð-r c ó¼ — | j j |« }| j j | S # t $ r t dj |« « d ‚w xY w©Nú{!r} is not registered)r Ú_fileobj_lookupr# ÚKeyErrorr )r r r s r Ú__getitem__z_SelectorMapping.__getitem__E s[ € ð OØ—‘×/Ñ/°Ó8ˆBØ—>‘>×,Ñ,¨RÑ0Ð0øÜò OÜÐ3×:Ñ:¸7ÓCÓDÈ$ÐNð Oús ‚36 ¶%Ac ó@ — t | j j « S r )Úiterr r# r$ s r Ú__iter__z_SelectorMapping.__iter__L s € Ü�D—N‘N×-Ñ-Ó.Ð.r N)Ú__name__Ú __module__Ú__qualname__Ú__doc__r r% r+ r. © r r r r <