[blivet:master 09/13] Make signature of _setSize match that of the method it overrrides.

mulhern amulhern at redhat.com
Fri Apr 25 12:54:28 UTC 2014


It seems that if the name of the parameter matches pylint won't complain
about an unused argument.

Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/devices.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/devices.py b/blivet/devices.py
index 1d9eec7..1219801 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -4547,7 +4547,7 @@ class BTRFSDevice(StorageDevice):
         size = sum([d.size for d in self.parents])
         return size
 
-    def _setSize(self, size):
+    def _setSize(self, newsize):
         raise RuntimeError("cannot directly set size of btrfs volume")
 
     @property
-- 
1.8.3.1



More information about the anaconda-patches mailing list