%PDF- %PDF-
| Direktori : /lib/python3/dist-packages/pyudev/__pycache__/ |
| Current File : //lib/python3/dist-packages/pyudev/__pycache__/discover.cpython-312.pyc |
�
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'