Browse Source

Make pylint happy

Marek Marczykowski-Górecki 3 years ago
parent
commit
1afd46da6b
2 changed files with 6 additions and 4 deletions
  1. 1 0
      qubesmanager/qvm_template_gui.py
  2. 5 4
      qubesmanager/settings.py

+ 1 - 0
qubesmanager/qvm_template_gui.py

@@ -168,6 +168,7 @@ class TemplateModel(PyQt5.QtCore.QAbstractItemModel):
         return index == PyQt5.QtCore.QModelIndex()
 
     def data(self, index, role=PyQt5.QtCore.Qt.DisplayRole):
+        # pylint: disable=too-many-return-statements
         if index.isValid():
             data = self.children[index.row()][index.column()]
             if role == PyQt5.QtCore.Qt.DisplayRole:

+ 5 - 4
qubesmanager/settings.py

@@ -631,10 +631,11 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtWidgets.QDialog):
             QtWidgets.QMessageBox.warning(
                 self,
                 self.tr("Warning!"),
-                self.tr("Connecting a TemplateVM directly to a network is highly"
-                        " discouraged! <br> <small>You are breaking a basic par"
-                        "t of Qubes security and there is probably no real need"
-                        " to do so. Continue at your own risk.</small>"))
+                self.tr(
+                    "Connecting a TemplateVM directly to a network is highly"
+                    " discouraged! <br> <small>You are breaking a basic part "
+                    "of Qubes security and there is probably no real need"
+                    " to do so. Continue at your own risk.</small>"))
 
     def check_warn_dispvmnetvm(self):
         if not hasattr(self.vm, 'default_dispvm'):