Browse Source

One more pylint fix

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 1 year ago
parent
commit
7eeefdd7c6
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 4 additions and 2 deletions
  1. +3
    -1
      .travis/script-pylint.sh
  2. +1
    -1
      source/frontend/widgets/racklistwidget.py

+ 3
- 1
.travis/script-pylint.sh View File

@@ -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,\


+ 1
- 1
source/frontend/widgets/racklistwidget.py View File

@@ -316,7 +316,7 @@ class RackListWidget(QListWidget):

urls = event.mimeData().urls()

if len(urls) == 0:
if not urls:
return

tryItem = self.itemAt(event.pos())


Loading…
Cancel
Save