From ad6d18bb6246e18813f778ab44fec00c70ef229a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= Date: Mon, 13 Feb 2017 17:36:10 +0100 Subject: [PATCH] plugin_disk: Mark _device_is_supported as a classmethod MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes a pylint error. Signed-off-by: Ondřej Lysoněk --- tuned/plugins/plugin_disk.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tuned/plugins/plugin_disk.py b/tuned/plugins/plugin_disk.py index 5207dff..ddc84df 100644 --- a/tuned/plugins/plugin_disk.py +++ b/tuned/plugins/plugin_disk.py @@ -33,6 +33,7 @@ class DiskPlugin(hotplug.Plugin): self._assigned_devices = set() self._free_devices = self._devices.copy() + @classmethod def _device_is_supported(cls, device): return device.device_type == "disk" and \ device.attributes.get("removable", None) == "0" and \