ó
æ”\c           @   sB   d  d l  m Z d d l Z d g Z d e j f d „  ƒ  YZ d S(   i   (   t   device_matcheriÿÿÿÿNt   DeviceMatcherUdevc           B   s   e  Z d  „  Z RS(   c         C   sˆ   d } y | j  j ƒ  } Wn t k
 r8 | j ƒ  } n Xx0 t | ƒ D]" \ } } | | d | d 7} qF Wt j | | t j ƒ d k	 S(   sc   
		Match a device against the udev regex in tuning profiles.

		device is a pyudev.Device object
		t    t   =s   
N(   t
   propertiest   itemst   AttributeErrort   listt   ret   searcht	   MULTILINEt   None(   t   selft   regext   deviceR   R   t   keyt   val(    (    sF   /usr/lib/python2.7/site-packages/tuned/hardware/device_matcher_udev.pyt   match   s    (   t   __name__t
   __module__R   (    (    (    sF   /usr/lib/python2.7/site-packages/tuned/hardware/device_matcher_udev.pyR      s   (   R   R    R   t   __all__t   DeviceMatcherR   (    (    (    sF   /usr/lib/python2.7/site-packages/tuned/hardware/device_matcher_udev.pyt   <module>   s   	