ok

Mini Shell

Direktori : /lib/python3.6/site-packages/dnf/module/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/dnf/module/__pycache__/exceptions.cpython-36.pyc

3

�ft`F�@sddlZddlmZmZddlmZGdd�dejj�ZGdd�dejj�Z	Gdd	�d	ejj�Z
Gd
d�dejj�ZGdd
�d
ejj�ZGdd�dejj�Z
Gdd�dejj�ZGdd�dejj�ZGdd�dejj�ZGdd�dejj�ZGdd�dejj�ZdS)�N)�module_messages�NO_PROFILE_SPECIFIED)�_cseZdZ�fdd�Z�ZS)�NoModuleExceptioncs"td�j|�}tt|�j|�dS)NzNo such module: {})r�format�superr�__init__)�self�module_spec�value)�	__class__�� /usr/lib/python3.6/exceptions.pyrszNoModuleException.__init__)�__name__�
__module__�__qualname__r�
__classcell__r
r
)rrrsrcseZdZ�fdd�Z�ZS)�NoStreamExceptioncs"td�j|�}tt|�j|�dS)NzNo such stream: {})rrrrr)r	�streamr)rr
rr szNoStreamException.__init__)rrrrrr
r
)rrrsrcseZdZ�fdd�Z�ZS)�EnabledStreamExceptioncs"td�j|�}tt|�j|�dS)Nz No enabled stream for module: {})rrrrr)r	r
r)rr
rr&szEnabledStreamException.__init__)rrrrrr
r
)rrr%srcseZdZd�fdd�	Z�ZS)�EnableMultipleStreamsExceptionNcs*|dkrtd�j|�}tt|�j|�dS)Nz<Cannot enable more streams from module '{}' at the same time)rrrrr)r	r
r)rr
rr,sz'EnableMultipleStreamsException.__init__)N)rrrrrr
r
)rrr+srcseZdZ�fdd�Z�ZS)�DifferentStreamEnabledExceptioncs"td�j|�}tt|�j|�dS)Nz'Different stream enabled for module: {})rrrrr)r	r
r)rr
rr3sz(DifferentStreamEnabledException.__init__)rrrrrr
r
)rrr2srcseZdZ�fdd�Z�ZS)�NoProfileExceptioncs"td�j|�}tt|�j|�dS)NzNo such profile: {})rrrrr)r	Zprofiler)rr
rr9szNoProfileException.__init__)rrrrrr
r
)rrr8srcseZdZ�fdd�Z�ZS)�ProfileNotInstalledExceptioncs"td�j|�}tt|�j|�dS)Nz&Specified profile not installed for {})rrrrr)r	r
r)rr
rr?sz%ProfileNotInstalledException.__init__)rrrrrr
r
)rrr>srcseZdZ�fdd�Z�ZS)�NoStreamSpecifiedExceptioncs"td�j|�}tt|�j|�dS)Nz3No stream specified for '{}', please specify stream)rrrrr)r	r
r)rr
rrEsz#NoStreamSpecifiedException.__init__)rrrrrr
r
)rrrDsrcseZdZ�fdd�Z�ZS)�NoProfileSpecifiedExceptioncs"ttj|�}tt|�j|�dS)N)rrrrrr)r	r
r)rr
rrKsz$NoProfileSpecifiedException.__init__)rrrrrr
r
)rrrJsrcseZdZ�fdd�Z�ZS)�NoProfilesExceptioncs"td�j|�}tt|�j|�dS)Nz*No such profile: {}. No profiles available)rrrrr)r	r
r)rr
rrQszNoProfilesException.__init__)rrrrrr
r
)rrrPsrcseZdZ�fdd�Z�ZS)�NoProfileToRemoveExceptioncs"td�j|�}tt|�j|�dS)NzNo profile to remove for '{}')rrrrr)r	r
r)rr
rrWsz#NoProfileToRemoveException.__init__)rrrrrr
r
)rrrVsr)ZdnfZ
dnf.modulerrZdnf.i18nr�
exceptions�Errorrrrrrrrrrrrr
r
r
r�<module>s

Zerion Mini Shell 1.0