
„Ù½X(  ã               @   sj   d  d l  Z d  d l m Z e j j ƒ  j Z Gd d „  d e ƒ Z	 Gd d „  d e
 ƒ Z d d „  Z d S)	é    N)Úgettextc               @   sU   e  Z d  Z d d „  Z d d d „ Z d 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)N)r   )r   ÚcodenameÚdistror   r   r   Úexpand$   s    zShortcutHandler.expandc             C   s)   d t  d ƒ d |  j i d t  d ƒ i S)NZdescriptionz+No description available for '%(shortcut)s'r   Zweb_linkzweb link unavailable)Ú_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)Ú__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)N)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
   