[blivet:master 04/13] Disable not-callable pylint warning.

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


The method will not reach this line if self.child_factory_class is None.

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

diff --git a/blivet/devicefactory.py b/blivet/devicefactory.py
index 2055f7f..07ae97d 100644
--- a/blivet/devicefactory.py
+++ b/blivet/devicefactory.py
@@ -706,7 +706,7 @@ class DeviceFactory(object):
         log.debug("child factory class: %s", self.child_factory_class)
         log.debug("child factory args: %s", args)
         log.debug("child factory kwargs: %s", kwargs)
-        factory = self.child_factory_class(*args, **kwargs)
+        factory = self.child_factory_class(*args, **kwargs) # pylint: disable=not-callable
         self.child_factory = factory
         factory.parent_factory = self
 
-- 
1.8.3.1



More information about the anaconda-patches mailing list