| Server IP : 91.240.85.141 / Your IP : 216.73.216.223 Web Server : nginx/1.28.0 System : Linux nuevo.ru 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : ( 1029) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/pyudev/__pycache__/ |
Upload File : |
�
9*�bO, � �� � d Z ddlZddlZddlZddlZddlmZ ddlmZ d� Z G d� de
� Z G d� d e� Z G d
� de� Z
G d� d
e� Z G d� de� Z G d� de
� Zy)z�
pyudev.discover
===============
Tools to discover a device given limited information.
.. moduleauthor:: mulhern <amulhern@redhat.com>
� N��DeviceNotFoundError)�Devicesc �B � � t j � � � fd�� }|S )z\
Allow Device discovery methods to return None instead of raising an
exception.
c �4 �� �| i |��S # t $ r Y yw xY w)z�
Returns result of calling ``func`` on ``args``, ``kwargs``.
Returns None if ``func`` raises :exc:`DeviceNotFoundError`.
Nr )�args�kwargs�funcs ��1/usr/lib/python3/dist-packages/pyudev/discover.py�the_funcz wrap_exception.<locals>.the_func+ s* �� � ���(��(�(��"� �� �s � � �)� functools�wraps)r
r s ` r �wrap_exceptionr % s'