404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.145.163.26: ~ $
3

5�Vl�@sdZddlmZddlmZddlmZddlmZddlZddlmZeej	�Gdd	�d	e
��Zeej	�Gd
d�de��ZGdd
�d
e�Z
Gdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZdS)z�
    pyudev.device._errors
    =====================

    Errors raised by Device methods.

    .. moduleauthor:: Sebastian Wiesner <lunaryorn@gmail.com>
�)�absolute_import)�division)�print_function)�unicode_literalsN)�
add_metaclassc@seZdZdZdS)�DeviceErrorzP
    Any error raised when messing around w/ or trying to discover devices.
    N)�__name__�
__module__�__qualname__�__doc__�rr�/usr/lib/python3.6/_errors.pyr$src@seZdZdZdS)�DeviceNotFoundErrorz�
    An exception indicating that no :class:`Device` was found.

    .. versionchanged:: 0.5
       Rename from ``NoSuchDeviceError`` to its current name.
    N)rr	r
rrrrr
r+src@s,eZdZdZdd�Zedd��Zdd�ZdS)	�DeviceNotFoundAtPathErrorzh
    A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was
    found at a given path.
    cCstj||�dS)N)r�__init__)�self�sys_pathrrr
r;sz"DeviceNotFoundAtPathError.__init__cCs
|jdS)z<
        The path that caused this error as string.
        r)�args)rrrr
r>sz"DeviceNotFoundAtPathError.sys_pathcCsdj|j�S)NzNo device at {0!r})�formatr)rrrr
�__str__Esz!DeviceNotFoundAtPathError.__str__N)rr	r
rr�propertyrrrrrr
r5src@seZdZdZdS)�DeviceNotFoundByFileErrorzp
    A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was
    found from the given filename.
    N)rr	r
rrrrr
rIsrc@seZdZdZdS)�#DeviceNotFoundByInterfaceIndexErrorzw
    A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was found
    from the given interface index.
    N)rr	r
rrrrr
rOsrc@seZdZdZdS)�!DeviceNotFoundByKernelDeviceErrorz�
    A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was found
    from the given kernel device string.

    The format of the kernel device string is defined in the
    systemd.journal-fields man pagees.
    N)rr	r
rrrrr
rUsrc@s8eZdZdZdd�Zedd��Zedd��Zdd	�Zd
S)�DeviceNotFoundByNameErrorzj
    A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was
    found with a given name.
    cCstj|||�dS)N)rr)r�	subsystem�sys_namerrr
resz"DeviceNotFoundByNameError.__init__cCs
|jdS)zA
        The subsystem that caused this error as string.
        r)r)rrrr
rhsz#DeviceNotFoundByNameError.subsystemcCs
|jdS)z@
        The sys name that caused this error as string.
        �)r)rrrr
rosz"DeviceNotFoundByNameError.sys_namecCs
dj|�S)Nz+No device {0.sys_name!r} in {0.subsystem!r})r)rrrr
rvsz!DeviceNotFoundByNameError.__str__N)	rr	r
rrrrrrrrrr
r_s
rc@s8eZdZdZdd�Zedd��Zedd��Zdd	�Zd
S)�DeviceNotFoundByNumberErrorzs
    A :exc:`DeviceNotFoundError` indicating, that no :class:`Device` was found
    for a given device number.
    cCstj|||�dS)N)rr)r�typZnumberrrr
r�sz$DeviceNotFoundByNumberError.__init__cCs
|jdS)zj
        The device type causing this error as string.  Either ``'char'`` or
        ``'block'``.
        r)r)rrrr
�device_type�sz'DeviceNotFoundByNumberError.device_typecCs
|jdS)zB
        The device number causing this error as integer.
        r)r)rrrr
�
device_number�sz)DeviceNotFoundByNumberError.device_numbercCs
dj|�S)Nz7No {0.device_type} device with number {0.device_number})r)rrrr
r�sz#DeviceNotFoundByNumberError.__str__N)	rr	r
rrrr r!rrrrr
rzs
rc@seZdZdZdd�ZdS)� DeviceNotFoundInEnvironmentErrorz�
    A :exc:`DeviceNotFoundError` indicating, that no :class:`Device` could
    be constructed from the process environment.
    cCsdS)NzNo device found in environmentr)rrrr
r�sz(DeviceNotFoundInEnvironmentError.__str__N)rr	r
rrrrrr
r"�sr"c@s&eZdZdZdZddd�Zdd�ZdS)	�DeviceValueErrorz�
    Raised when a parameter has an unacceptable value.

    May also be raised when the parameter has an unacceptable type.
    z+value '%s' for parameter %s is unacceptableNcCs||_||_||_dS)z� Initializer.

            :param object value: the value
            :param str param: the parameter
            :param str msg: an explanatory message
        N)�_value�_param�_msg)r�valueZparam�msgrrr
r�szDeviceValueError.__init__cCs:|jr$|jd}||j|j|jfS|j|j|jfSdS)Nz: %s)r&�_FMT_STRr$r%)rZfmt_strrrr
r�s
zDeviceValueError.__str__)N)rr	r
rr)rrrrrr
r#�s
r#)rZ
__future__rrrr�abcZsixr�ABCMeta�	Exceptionrrrrrrrrr"r#rrrr
�<module>s$	


Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 711 B 0644
__init__.cpython-36.pyc File 711 B 0644
_device.cpython-36.opt-1.pyc File 42.41 KB 0644
_device.cpython-36.pyc File 42.41 KB 0644
_errors.cpython-36.opt-1.pyc File 6.24 KB 0644
_errors.cpython-36.pyc File 6.24 KB 0644