3 ָVX � @ sD d Z G dd� de�ZG dd� de�ZG dd� de�Zee� j�ZdS )z{Generic programming utilities. Utilities implemented in this file are not dependent on dbus, they can be used everywhere. c @ s8 e Zd ZdZdd� Zdd� Zdd� Zd d � Zdd� Zd S )�subscription� callback_list�callbackc C s || _ || _| j j|� d S )N)r r �append)�selfr r � r �/usr/lib/python3.6/generic.py�__init__ s zsubscription.__init__c C s | j j| j� d | _ d | _d S )N)r �remover )r r r r �unsubscribe s zsubscription.unsubscribec C s | j � dS )zAn alias for unsubscribe()N)r )r r r r � disconnect s zsubscription.disconnectc C s | S )Nr )r r r r � __enter__ s zsubscription.__enter__c C s | j d k r| j� d S )N)r r )r �exc_type� exc_value� tracebackr r r �__exit__ s zsubscription.__exit__N)r r ) �__name__� __module__�__qualname__� __slots__r r r r r r r r r r s r c @ sD e Zd ZdZdd� Zedd� �Zdd� Zd d � Zdd� Z d d� Z dS )�bound_signal� __signal__�__self__c C s || _ || _d S )N)r r )r �signal�instancer r r r "