
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
3
<e                 @   s0   d dl mZ ddlZdgZG dd dejZdS )   )device_matcher    NDeviceMatcherUdevc               @   s   e Zd Zdd ZdS )r   c             C   sr   d}y|j j }W n tk
r.   |j }Y nX x,tt|D ]\}}||d | d 7 }q>W tj||tjdk	S )zc
		Match a device against the udev regex in tuning profiles.

		device is a pyudev.Device object
		 =
N)
propertiesitemsAttributeErrorsortedlistresearch	MULTILINE)selfZregexZdevicer   r	   keyval r   )/usr/lib/python3.6/device_matcher_udev.pymatch   s    zDeviceMatcherUdev.matchN)__name__
__module____qualname__r   r   r   r   r   r      s   )r   r   r   __all__ZDeviceMatcherr   r   r   r   r   <module>   s   