Your IP : 18.221.160.29
3
���f � @ s d dl Z G dd� d�ZdS )� Nc @ s4 e Zd ZdZddd�Zdd� Zdd� Zdd d
�ZdS )
�keyeventz� A discrete key event, e.g., Publish, Activate, Inactive, Delete,
etc. Stores the date of the event, and identifying information
about the key to which the event will occur.Nc C s@ || _ |p|j|�| _|| _|j| _|j| _|j| _|j| _d S )N) �whatZgettime�when�key�sep�name�zone�alg�keyid)�selfr r r � r �/usr/lib/python3.6/keyevent.py�__init__ s zkeyevent.__init__c C s t | j| j| j| j| j| jf�S )N)�reprr r r
r r r )r r r r
�__repr__ s zkeyevent.__repr__c C s t jd| j�S )Nz%a %b %d %H:%M:%S UTC %Y)�timeZstrftimer )r r r r
�showtime$ s zkeyevent.showtimec C s� dd� }|s|}|st � }|s$t � }| jdkr<|j| j� n�| jdkrT|j| j� n�| jdkr�| j|kr||dt| j� � q�|j| j� nl| jdkr�| j|kr�|j| j� q�|dt| j� � n6| jd kr�| j|kr�|j| j� | j|kr�|j| j� ||fS )
Nc _ s d S )Nr )�args�kwargsr r r
�noop* s zkeyevent.status.<locals>.noopZActivateZPublishZInactivez= WARNING: %s scheduled to become inactive before it is activeZDeletez@WARNING: key %s is scheduled for deletion before it is publishedZRevoke)�setr �addr
r r �remove)r ZactiveZ published�outputr r r r
�status) s6
zkeyevent.status)N)N)�__name__�
__module__�__qualname__�__doc__r r r r r r r r
r s
r )r r r r r r
�<module> s