관리-도구
편집 파일: registry.cpython-311.pyc
� �܋f% � �� � d Z ddlmZ ddlZddlZddlZddlmZ ddlmZ ej e � � Z ej e � � Z d� Z d� Zd � Zd � Zd� Z G d� d e� � ZdS )aJ Provides managed registration services on behalf of :func:`.listen` arguments. By "managed registration", we mean that event listening functions and other objects can be added to various collections in such a way that their membership in all those collections can be revoked at once, based on an equivalent :class:`._EventKey`. � )�absolute_importN� )�exc)�utilc � � t r | t vrd S t � | � � }|� � � D ]I}|t v r>t | }|� | � � |st � |� � �Jd S �N)�_collection_to_key�pop�values�_key_to_collection)�ref�listener_to_key�key�dispatch_regs �P/opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/event/registry.py�_collection_gcedr 5 s� � �� ��,>�!>�!>���(�,�,�S�1�1�O��%�%�'�'� ,� ,���$�$�$�-�c�2�L����S�!�!�!�� ,�"�&�&�s�+�+�+�� ,� ,� c � � | j }t | }|j }t j | j � � }||v rdS |||<