[blivet:master 02/10] Give abstract method the same signature as its overriding methods.

mulhern amulhern at redhat.com
Tue Mar 25 15:49:01 UTC 2014


ABC metaclass mechanisms do not check the signature of a method, only
its name, so this went undetected. It was also benign.

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

diff --git a/blivet/devicelibs/raid.py b/blivet/devicelibs/raid.py
index 3d5ea8d..837667f 100644
--- a/blivet/devicelibs/raid.py
+++ b/blivet/devicelibs/raid.py
@@ -189,7 +189,7 @@ class RAIDLevel(object):
         return self._get_recommended_stride(member_count)
 
     @abc.abstractmethod
-    def _get_recommended_stride(member_count):
+    def _get_recommended_stride(self, member_count):
         """Helper function; not to be called directly."""
         raise NotImplementedError()
 
-- 
1.8.3.1



More information about the anaconda-patches mailing list