U
    ÞËd(  ã                   @   sL   d dl Zd dlmZ ej ¡ jZG dd„ deƒZ	G dd„ de
ƒZdd„ ZdS )	é    N)Úgettextc                   @   s8   e Zd Zdd„ Zddd„Zddd„Zdd	„ Zd
d„ ZdS )ÚShortcutHandlerc                 C   s
   || _ d S ©N©Úshortcut)Úselfr   © r   ú>/usr/lib/python3/dist-packages/softwareproperties/shortcuts.pyÚ__init__   s    zShortcutHandler.__init__Nc                 C   s   dS )NTr   )r   Z	keyserverr   r   r	   Úadd_key!   s    zShortcutHandler.add_keyc                 C   s
   | j d fS r   r   )r   ÚcodenameÚdistror   r   r	   Úexpand$   s    zShortcutHandler.expandc                 C   s   t dƒd| ji t dƒdœS )Nz+No description available for '%(shortcut)s'r   zweb link unavailable)ZdescriptionZweb_link)Ú_r   ©r   r   r   r	   Úinfo'   s
    ÿýzShortcutHandler.infoc                 C   s   dS )NFr   r   r   r   r	   Úshould_confirm-   s    zShortcutHandler.should_confirm)N)NN)Ú__name__Ú
__module__Ú__qualname__r
   r   r   r   r   r   r   r   r	   r      s
   

r   c                   @   s   e Zd ZdS )ÚShortcutExceptionN)r   r   r   r   r   r   r	   r   1   s   r   c                 C   s   t | ƒS r   )r   r   r   r   r	   Úshortcut_handler5   s    r   )Zaptsources.distroZ
aptsourcesr   r   r   Z
get_distror   Z_DEF_CODENAMEÚobjectr   Ú	Exceptionr   r   r   r   r   r	   Ú<module>   s
   