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())