관리-도구
편집 파일: registry.cpython-37.pyc
B ��4]� � @ s� d Z ddlmZ ddlZddlZddlZddlmZ ddlmZ e� e �Ze� e �Zdd� Z d d � Zdd� Zd d� Zdd� ZG dd� de�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 C sX t r| t krd S t �| �}x8|�� D ],}|tkr$t| }|�| � |s$t�|� q$W d S )N)�_collection_to_key�pop�values�_key_to_collection)�ref�listener_to_key�key�dispatch_reg� r �L/opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/event/registry.py�_collection_gced5 s r c C sH | j }t| }|j}t�| j�}||kr,dS |||<