eric6/Preferences/ConfigurationPages/DebuggerGeneralPage.py

changeset 7263
c1af2e327675
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r c4b5f3393d63 -r c1af2e327675 eric6/Preferences/ConfigurationPages/DebuggerGeneralPage.py
--- a/eric6/Preferences/ConfigurationPages/DebuggerGeneralPage.py	Tue Sep 24 18:45:33 2019 +0200
+++ b/eric6/Preferences/ConfigurationPages/DebuggerGeneralPage.py	Tue Sep 24 18:46:24 2019 +0200
@@ -66,8 +66,10 @@
             addressEntries = networkInterface.addressEntries()
             if len(addressEntries) > 0:
                 for addressEntry in addressEntries:
-                    if ":" in addressEntry.ip().toString() and \
-                            not socket.has_ipv6:
+                    if (
+                        ":" in addressEntry.ip().toString() and
+                        not socket.has_ipv6
+                    ):
                         continue    # IPv6 not supported by Python
                     interfaces.append(
                         "{0} ({1})".format(
@@ -88,8 +90,10 @@
             self.selectedInterfaceButton.setChecked(True)
             index = -1
             for i in range(len(interfaces)):
-                if QRegExp(".*{0}.*".format(interface))\
-                        .exactMatch(interfaces[i]):
+                if (
+                    QRegExp(".*{0}.*".format(interface))
+                    .exactMatch(interfaces[i])
+                ):
                     index = i
                     break
             self.interfacesCombo.setCurrentIndex(index)
@@ -271,8 +275,9 @@
             self.tr("Enter the IP address of an allowed host"),
             QLineEdit.Normal)
         if ok and allowedHost:
-            if QHostAddress(allowedHost).protocol() in \
-               [QAbstractSocket.IPv4Protocol, QAbstractSocket.IPv6Protocol]:
+            if QHostAddress(allowedHost).protocol() in [
+                QAbstractSocket.IPv4Protocol, QAbstractSocket.IPv6Protocol
+            ]:
                 self.allowedHostsList.addItem(allowedHost)
             else:
                 E5MessageBox.critical(
@@ -304,8 +309,9 @@
             QLineEdit.Normal,
             allowedHost)
         if ok and allowedHost:
-            if QHostAddress(allowedHost).protocol() in \
-               [QAbstractSocket.IPv4Protocol, QAbstractSocket.IPv6Protocol]:
+            if QHostAddress(allowedHost).protocol() in [
+                QAbstractSocket.IPv4Protocol, QAbstractSocket.IPv6Protocol
+            ]:
                 self.allowedHostsList.currentItem().setText(allowedHost)
             else:
                 E5MessageBox.critical(

eric ide

mercurial