← Back
Editing: device_matcher_udev.cpython-312.pyc
� �]�iE � �H � d dl mZ ddlZdgZ G d� dej � Zy)� )�device_matcher� N�DeviceMatcherUdevc � � e Zd Zd� Zy)r c �@ � d} |j j � }t t |� � D ] \ }}||dz |z dz z }� t j ||t j � duS # t $ r% |j � }n# t $ r Y Y yw xY wY �~w xY w)zc Match a device against the udev regex in tuning profiles. device is a pyudev.Device object � F�=� N)� properties�items�AttributeError�sorted�list�re�search� MULTILINE)�self�regex�devicer r �key�vals �G/usr/lib/python3.12/site-packages/tuned/hardware/device_matcher_udev.py�matchzDeviceMatcherUdev.match s� � � �*�����"�"�$�5� ��e��%�h�c�3� ��s��S��4�'�'�:� &� ���5�*�b�l�l� 3�4� ?�?�� � ���L�L�N�E�� � ���� ��s5 �A/ �/ B�9B � B� B�B�B�B�BN)�__name__� __module__�__qualname__r � � r r r s � �@r )r r r �__all__� DeviceMatcherr r r r �<module>r! s'