📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-21 09:50:14
📂
/ (Root)
/
lib
/
python3.6
/
site-packages
/
tuned
/
hardware
📍 /lib/python3.6/site-packages/tuned/hardware
🔄 Refresh
✏️
Editing: device_matcher_udev.py
Read Only
from . import device_matcher import re __all__ = ["DeviceMatcherUdev"] class DeviceMatcherUdev(device_matcher.DeviceMatcher): def match(self, regex, device): """ Match a device against the udev regex in tuning profiles. device is a pyudev.Device object """ properties = '' try: items = device.properties.items() except AttributeError: items = device.items() for key, val in sorted(list(items)): properties += key + '=' + val + '\n' return re.search(regex, properties, re.MULTILINE) is not None
💾 Save Changes
❌ Cancel