[blivet:master 20/25] Disable E1101 (no-member) error
mulhern
amulhern at redhat.com
Wed Apr 16 21:54:41 UTC 2014
If isResize is True, then self is an instance of ActionResizeDevice or
ActionResizeFormat and does have a member 'dir' (short for direction).
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/deviceaction.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/blivet/deviceaction.py b/blivet/deviceaction.py
index a95f8a5..d7b3022 100644
--- a/blivet/deviceaction.py
+++ b/blivet/deviceaction.py
@@ -176,10 +176,12 @@ class DeviceAction(util.ObjectID):
@property
def isShrink(self):
+ # pylint: disable=E1101
return (self.isResize and self.dir == RESIZE_SHRINK)
@property
def isGrow(self):
+ # pylint: disable=E1101
return (self.isResize and self.dir == RESIZE_GROW)
@property
@@ -221,6 +223,7 @@ class DeviceAction(util.ObjectID):
""" String representing the direction of a resize action. """
s = ""
if self.isResize:
+ # pylint: disable=E1101
s = resize_strings[self.dir]
return s
--
1.8.3.1
More information about the anaconda-patches
mailing list