[pitivi] Fix pylint len-as-condition
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Fix pylint len-as-condition
- Date: Mon, 11 Nov 2019 22:08:26 +0000 (UTC)
commit 15942b40c168d9f50cea1580bca15ee7c7bd1bc0
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sun Nov 3 00:03:51 2019 +0100
Fix pylint len-as-condition
pitivi/medialibrary.py | 2 +-
pre-commit.hook | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index 4fb9d962..29fd2acc 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -750,7 +750,7 @@ class MediaLibraryWidget(Gtk.Box, Loggable):
view.connect("drag-end", self._dnd_drag_end_cb)
def __updateViewCb(self, unused_model, unused_path, unused_iter=None):
- if not len(self.storemodel):
+ if len(self.storemodel) == 0:
self._welcome_infobar.show_all()
else:
self._welcome_infobar.hide()
diff --git a/pre-commit.hook b/pre-commit.hook
index 4e79eb87..44cae3bb 100755
--- a/pre-commit.hook
+++ b/pre-commit.hook
@@ -14,7 +14,6 @@ export PYTHONPATH=$TOPLEVEL/pitivi/coptimizations/.libs:$PYTHONPATH
PYLINT_IGNORED_FILES="
bin/pitivi.in
pitivi/autoaligner.py
-pitivi/medialibrary.py
pitivi/utils/extract.py
"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]