[blivet:master 08/10] Remove unused assignment to boot.
mulhern
amulhern at redhat.com
Tue Mar 25 15:49:07 UTC 2014
boot is not used anywhere in the method below and I do not believe that it
is global. So, the only effect of this change would be that if
self.bootDevice raises an exception that is not in
(DeviceError, AttributeError) that exception will no longer be propagated.
But it seems unlikely that such an exception was being raised anyway.
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/__init__.py | 4 ----
1 file changed, 4 deletions(-)
diff --git a/blivet/__init__.py b/blivet/__init__.py
index 882ea8a..e358e54 100644
--- a/blivet/__init__.py
+++ b/blivet/__init__.py
@@ -1543,10 +1543,6 @@ class Blivet(object):
filesystems = self.mountpoints
root = self.fsset.rootDevice
swaps = self.fsset.swapDevices
- try:
- boot = self.bootDevice
- except (DeviceError, AttributeError):
- boot = None
if root:
if root.size < 250:
--
1.8.3.1
More information about the anaconda-patches
mailing list