[pitivi] system: A bit more Pythony



commit 909a5e90e3030afc362552d6bd11bf5d4a518a79
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Mon Dec 2 05:05:15 2013 +0100

    system: A bit more Pythony

 pitivi/utils/system.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/utils/system.py b/pitivi/utils/system.py
index f9401b3..6e74616 100644
--- a/pitivi/utils/system.py
+++ b/pitivi/utils/system.py
@@ -78,7 +78,7 @@ class System(Signallable, Loggable):
 
     def _isInhibited(self, list_, key=None):
         if key is None:
-            if len(list_) > 0:
+            if list_:
                 return True
         elif key in list_:
             return True


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]