[PATCH 13/13] Fix a couple of easy pylint errors.

David Lehman dlehman at redhat.com
Wed May 27 18:16:14 UTC 2015


---
 blivet/__init__.py   | 2 --
 blivet/devicetree.py | 3 ++-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/blivet/__init__.py b/blivet/__init__.py
index 7051ecb..1f47add 100644
--- a/blivet/__init__.py
+++ b/blivet/__init__.py
@@ -132,8 +132,6 @@ def enable_installer_mode():
 
     flags.installer_mode = True
 
-    from . import deviceaction
-
 def getSysroot():
     """Returns the path to the target OS installation.
 
diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index 38b729a..360155f 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -53,7 +53,6 @@ from .platform import platform
 from . import tsort
 from .flags import flags
 from .storage_log import log_exception_info, log_method_call, log_method_return
-import parted
 from .i18n import _
 from .size import Size
 
@@ -172,6 +171,7 @@ class DeviceTree(object):
     @property
     def pvInfo(self):
         if self._pvInfo is None:
+            # pylint: disable=attribute-defined-outside-init
             self._pvInfo = lvm.pvinfo()
 
         return self._pvInfo
@@ -179,6 +179,7 @@ class DeviceTree(object):
     @property
     def lvInfo(self):
         if self._lvInfo is None:
+            # pylint: disable=attribute-defined-outside-init
             self._lvInfo = lvm.lvs()
 
         return self._lvInfo
-- 
2.1.0



More information about the anaconda-patches mailing list