[PATCH 1/5] No need to call bool() on a boolean expression result

Vratislav Podzimek vpodzime at redhat.com
Fri Apr 11 09:28:07 UTC 2014


Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 pyanaconda/ui/gui/spokes/custom.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index cc440ae..d8223b1 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1451,7 +1451,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
         self.window.show_all()
         self._error = "\n".join(self.errors + self.warnings)
 
-        return bool(self._error == "")
+        return self._error == ""
 
     def on_back_clicked(self, button):
         # First, save anything from the currently displayed mountpoint.
-- 
1.9.0



More information about the anaconda-patches mailing list