Another try for travis

This commit is contained in:
donoban 2018-06-11 02:46:31 +02:00
parent 0c4047ffde
commit 643147f525
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5
2 changed files with 16 additions and 16 deletions

View File

@ -34,7 +34,7 @@ import threading
from pydbus import SessionBus
from qubesadmin import Qubes
from qubesadmin import exc # pylint: disable=no-name-in-module
from qubesadmin import exc
from PyQt4 import QtGui # pylint: disable=import-error
from PyQt4 import QtCore # pylint: disable=import-error
@ -966,7 +966,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
# vm could be deleted on renaming
try:
self.vms_in_table[vm.qid].update()
except exc.QubesPropertyAccessError:
except exc.QubesPropertyAccessError: # pylint: disable=no-name-in-module
pass
@ -1245,7 +1245,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
self.logs_menu.setEnabled(not menu_empty)
self.context_menu.exec_(self.table.mapToGlobal(point))
except exc.QubesPropertyAccessError:
except exc.QubesPropertyAccessError: # pylint: disable=no-name-in-module
pass
@QtCore.pyqtSlot('QAction *')

View File

@ -24,7 +24,7 @@ from PyQt4 import QtGui # pylint: disable=import-error
from PyQt4 import QtCore # pylint: disable=import-error
# pylint: disable=too-few-public-methods
from qubesadmin import exc # pylint: disable=no-name-in-module
from qubesadmin import exc
power_order = QtCore.Qt.DescendingOrder
update_order = QtCore.Qt.AscendingOrder
@ -85,7 +85,7 @@ class VmTypeWidget(VmIconWidget):
elif self.value == other.value:
return self.vm.name < other.vm.name
return self.value < other.value
except exc.QubesPropertyAccessError:
except exc.QubesPropertyAccessError: # pylint: disable=no-name-in-module
return False
def __init__(self, vm, parent=None):
@ -135,7 +135,7 @@ class VmLabelWidget(VmIconWidget):
elif self.value == other.value:
return self.vm.name < other.vm.name
return self.value < other.value
except exc.QubesPropertyAccessError:
except exc.QubesPropertyAccessError: # pylint: disable=no-name-in-module
return False
def __init__(self, vm, parent=None):
@ -166,7 +166,7 @@ class VmNameItem(QtGui.QTableWidgetItem):
elif other.qid == 0:
return False
return super(VmNameItem, self).__lt__(other)
except exc.QubesPropertyAccessError:
except exc.QubesPropertyAccessError: # pylint: disable=no-name-in-module
return False
@ -212,7 +212,7 @@ class VmInfoWidget(QtGui.QWidget):
return True
elif other.vm.qid == 0:
return False
except exc.QubesPropertyAccessError:
except exc.QubesPropertyAccessError: # pylint: disable=no-name-in-module
return False
self_val = self.upd_info_item.value
@ -303,7 +303,7 @@ class VmTemplateItem(QtGui.QTableWidgetItem):
elif self.text() == other.text():
return self.vm.name < other.vm.name
return super(VmTemplateItem, self).__lt__(other)
except exc.QubesPropertyAccessError:
except exc.QubesPropertyAccessError: # pylint: disable=no-name-in-module
return False
@ -330,7 +330,7 @@ class VmNetvmItem(QtGui.QTableWidgetItem):
elif self.text() == other.text():
return self.vm.name < other.vm.name
return super(VmNetvmItem, self).__lt__(other)
except exc.QubesPropertyAccessError:
except exc.QubesPropertyAccessError: # pylint: disable=no-name-in-module
return False
@ -354,7 +354,7 @@ class VmInternalItem(QtGui.QTableWidgetItem):
elif other.vm.qid == 0:
return False
return super(VmInternalItem, self).__lt__(other)
except exc.QubesPropertyAccessError:
except exc.QubesPropertyAccessError: # pylint: disable=no-name-in-module
return False
@ -384,7 +384,7 @@ class VmUpdateInfoWidget(QtGui.QWidget):
elif self.value == other.value:
return self.vm.name < other.vm.name
return self.value < other.value
except exc.QubesPropertyAccessError:
except exc.QubesPropertyAccessError: # pylint: disable=no-name-in-module
return False
def __init__(self, vm, show_text=True, parent=None):
@ -494,7 +494,7 @@ class VmSizeOnDiskItem(QtGui.QTableWidgetItem):
elif self.value == other.value:
return self.vm.name < other.vm.name
return self.value < other.value
except exc.QubesPropertyAccessError:
except exc.QubesPropertyAccessError: # pylint: disable=no-name-in-module
return False
@ -517,7 +517,7 @@ class VmIPItem(QtGui.QTableWidgetItem):
elif other.vm.qid == 0:
return False
return super(VmIPItem, self).__lt__(other)
except exc.QubesPropertyAccessError:
except exc.QubesPropertyAccessError: # pylint: disable=no-name-in-module
return False
@ -544,7 +544,7 @@ class VmIncludeInBackupsItem(QtGui.QTableWidgetItem):
elif self.vm.include_in_backups == other.vm.include_in_backups:
return self.vm.name < other.vm.name
return self.vm.include_in_backups < other.vm.include_in_backups
except exc.QubesPropertyAccessError:
except exc.QubesPropertyAccessError: # pylint: disable=no-name-in-module
return False
@ -579,5 +579,5 @@ class VmLastBackupItem(QtGui.QTableWidgetItem):
elif not other.backup_timestamp:
return True
return self.backup_timestamp < other.backup_timestamp
except exc.QubesPropertyAccessError:
except exc.QubesPropertyAccessError: # pylint: disable=no-name-in-module
return False