From 7eeefdd7c60b33e859eb9358f0cd47faf065f22f Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 27 Jun 2020 17:33:06 +0100 Subject: [PATCH] One more pylint fix Signed-off-by: falkTX --- .travis/script-pylint.sh | 4 +++- source/frontend/widgets/racklistwidget.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis/script-pylint.sh b/.travis/script-pylint.sh index b37b84ebb..cbc81997f 100755 --- a/.travis/script-pylint.sh +++ b/.travis/script-pylint.sh @@ -19,7 +19,9 @@ ${pylint} \ --max-line-length=120 \ --max-locals=25 \ --max-statements=100 \ - --enable=bad-continuation \ + --enable=\ +bad-continuation,\ +len-as-condition \ --disable=\ bad-whitespace,\ broad-except,\ diff --git a/source/frontend/widgets/racklistwidget.py b/source/frontend/widgets/racklistwidget.py index d21b481aa..db644f655 100644 --- a/source/frontend/widgets/racklistwidget.py +++ b/source/frontend/widgets/racklistwidget.py @@ -316,7 +316,7 @@ class RackListWidget(QListWidget): urls = event.mimeData().urls() - if len(urls) == 0: + if not urls: return tryItem = self.itemAt(event.pos())