Fixed unusued arguments

Places where the variable is used in a overriding method were marked for
pylint to ignore them.
This commit is contained in:
Marta Marczykowska-Górecka 2017-11-09 16:08:16 +01:00
parent 04aa844a9d
commit b9e4f99fec
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B
4 changed files with 6 additions and 6 deletions

View File

@ -38,7 +38,7 @@ class AppListWidgetItem(PyQt4.QtGui.QListWidgetItem):
class AppmenuSelectManager:
def __init__(self, vm, apps_multiselect, parent=None):
def __init__(self, vm, apps_multiselect):
self.vm = vm
self.app_list = apps_multiselect # this is a multiselect wiget
self.whitelisted = None

View File

@ -409,14 +409,14 @@ class QubesFirewallRulesModel(QtCore.QAbstractItemModel):
return self.createIndex(row, column, self.children[row])
def parent(self, child):
def parent(self, child): # pylint: disable=unused-argument
return QtCore.QModelIndex()
# pylint: disable=invalid-name
# pylint: disable=invalid-name,unused-argument
def rowCount(self, parent=QtCore.QModelIndex()):
return len(self)
# pylint: disable=invalid-name
# pylint: disable=invalid-name,unused-argument
def columnCount(self, parent=QtCore.QModelIndex()):
return len(self.__column_names)

View File

@ -9,7 +9,7 @@ class MultiSelectWidget(
__pyqtSignals__ = ("items_removed(PyQt_PyObject)",)
def __init__(self, parent=None):
super(MultiSelectWidget, self).__init__()
super(MultiSelectWidget, self).__init__(parent)
self.setupUi(self)
self.add_selected_button.clicked.connect(self.add_selected)
self.add_all_button.clicked.connect(self.add_all)

View File

@ -874,7 +874,7 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
def set_allow(self, allow):
self.policy_allow_radio_button.setChecked(allow)
self.policy_deny_radio_button.setChecked(not allow)
self.policy_changed(allow)
self.policy_changed()
def policy_changed(self):
self.rulesTreeView.setEnabled(