[pitivi] system: A bit more Pythony
- From: Mathieu Duponchelle <mathieudu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] system: A bit more Pythony
- Date: Tue, 10 Dec 2013 00:09:18 +0000 (UTC)
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]