[blivet:master 08/16] Disable unused argument warning for 'major' and 'minor'
mulhern
amulhern at redhat.com
Thu May 1 13:08:45 UTC 2014
These are not used by MDRaidArrayDevice.__init__, but they are passed
as arguments to a number of constructors, of which it is one, in
devicetree.addUdevDiskDevice.
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/devices.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/blivet/devices.py b/blivet/devices.py
index a6cf833..6778546 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -3174,6 +3174,8 @@ class MDRaidArrayDevice(ContainerDevice):
:keyword minor: the device minor (obsolete?)
:type minor: int
"""
+ # pylint: disable=unused-argument
+
# These attributes are used by _addParent, so they must be initialized
# prior to instantiating the superclass.
self._memberDevices = 0 # the number of active (non-spare) members
--
1.8.3.1
More information about the anaconda-patches
mailing list