Warning: Cannot modify header information - headers already sent by (output started at /var/www/jonas-eriksen.dk/pic/private/index.php:1) in /var/www/jonas-eriksen.dk/pic/private/index.php on line 215
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 " s zbound_signal.__init__c C s | j j| j S )N)r Úmapr )r r r r Ú callbacks&