AlkantarClanX12
Current Path : /opt/alt/python37/lib64/python3.7/__pycache__/ |
Current File : //opt/alt/python37/lib64/python3.7/__pycache__/_weakrefset.cpython-37.pyc |
B � f/ � @ s2 d dl mZ dgZG dd� d�ZG dd� d�ZdS )� )�ref�WeakSetc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�_IterationGuardc C s t |�| _d S )N)r � weakcontainer)�selfr � r �0/opt/alt/python37/lib64/python3.7/_weakrefset.py�__init__ s z_IterationGuard.__init__c C s | � � }|d k r|j�| � | S )N)r � _iterating�add)r �wr r r � __enter__ s z_IterationGuard.__enter__c C s0 | � � }|d k r,|j}|�| � |s,|�� d S )N)r r �remove�_commit_removals)r �e�t�br �sr r r �__exit__ s z_IterationGuard.__exit__N)�__name__� __module__�__qualname__r r r r r r r r s r c @ s e Zd Zd>dd�Zdd� Zdd� Zdd � Zd d� Zdd � Zdd� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� ZeZd d!� Zd"d#� Zd$d%� ZeZd&d'� Zd(d)� Zd*d+� ZeZd,d-� Zd.d/� ZeZd0d1� Zd2d3� Zd4d5� Z e Z!d6d7� Z"d8d9� Z#d:d;� Z$e$Z%d<d=� Z&dS )?r Nc C sB t � | _t| �fdd�}|| _g | _t � | _|d k r>| �|� d S )Nc S s2 |� }|d k r.|j r"|j�| � n|j�| � d S )N)r �_pending_removals�append�data�discard)�itemZselfrefr r r r �_remove&