Fix pylint warnings

This commit is contained in:
donoban 2018-06-11 01:56:10 +02:00
parent b8cb0f625b
commit 2a437bcfc4
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -75,6 +75,7 @@ class VmTypeWidget(VmIconWidget):
def set_value(self, value):
self.value = value
#pylint: disable=too-many-return-statements
def __lt__(self, other):
try:
if self.vm.qid == 0:
@ -124,6 +125,7 @@ class VmLabelWidget(VmIconWidget):
def set_value(self, value):
self.value = value
#pylint: disable=too-many-return-statements
def __lt__(self, other):
try:
if self.vm.qid == 0:
@ -156,6 +158,7 @@ class VmNameItem(QtGui.QTableWidgetItem):
self.setTextAlignment(QtCore.Qt.AlignVCenter)
self.qid = vm.qid
#pylint: disable=too-many-return-statements
def __lt__(self, other):
try:
if self.qid == 0:
@ -562,6 +565,7 @@ class VmLastBackupItem(QtGui.QTableWidgetItem):
else:
self.setText("")
#pylint: disable=too-many-return-statements
def __lt__(self, other):
try:
if self.vm.qid == 0: