Explorar o código

wrap long lines

Marek Marczykowski-Górecki %!s(int64=8) %!d(string=hai) anos
pai
achega
00caebda95
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      qubesmanager/settings.py

+ 4 - 2
qubesmanager/settings.py

@@ -958,7 +958,8 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
 
             if port is not None:
                 if port2 is not None and port2 <= port:
-                    QMessageBox.warning(None, "Invalid service ports range", "Port {0} is lower than port {1}.".format(port2, port))
+                    QMessageBox.warning(None, "Invalid service ports range",
+                        "Port {0} is lower than port {1}.".format(port2, port))
                 else:
                     item = {"address": address,
                             "netmask": netmask,
@@ -971,7 +972,8 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
                     else:
                         self.fw_model.appendChild(item)
             else:
-                QMessageBox.warning(None, "Invalid service name", "Service '{0} is unknown.".format(service))
+                QMessageBox.warning(None, "Invalid service name",
+                    "Service '{0}' is unknown.".format(service))
 
 
 # Bases on the original code by: