Preferences/ConfigurationPages/DebuggerGeneralPage.py

changeset 3010
befeff46ec0f
parent 2964
84b65fb9e780
child 3020
542e97d4ecb3
child 3057
10516539f238
--- a/Preferences/ConfigurationPages/DebuggerGeneralPage.py	Sat Oct 12 17:31:40 2013 +0200
+++ b/Preferences/ConfigurationPages/DebuggerGeneralPage.py	Sat Oct 12 18:25:29 2013 +0200
@@ -54,7 +54,8 @@
             self.consoleDbgEdit.setWhatsThis(t)
         
         self.consoleDbgCompleter = E5FileCompleter(self.consoleDbgEdit)
-        self.dbgTranslationLocalCompleter = E5DirCompleter(self.dbgTranslationLocalEdit)
+        self.dbgTranslationLocalCompleter = E5DirCompleter(
+            self.dbgTranslationLocalEdit)
         
         # set initial values
         interfaces = []
@@ -63,11 +64,13 @@
             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(networkInterface.humanReadableName(),
-                                              addressEntry.ip().toString()))
+                    interfaces.append(
+                        "{0} ({1})".format(
+                            networkInterface.humanReadableName(),
+                            addressEntry.ip().toString()))
         self.interfacesCombo.addItems(interfaces)
         interface = Preferences.getDebugger("NetworkInterface")
         if not socket.has_ipv6:
@@ -83,7 +86,8 @@
             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)
@@ -225,8 +229,10 @@
             else:
                 E5MessageBox.critical(self,
                     self.trUtf8("Add allowed host"),
-                    self.trUtf8("""<p>The entered address <b>{0}</b> is not"""
-                        """ a valid IP v4 or IP v6 address. Aborting...</p>""")\
+                    self.trUtf8(
+                        """<p>The entered address <b>{0}</b> is not"""
+                        """ a valid IP v4 or IP v6 address."""
+                        """ Aborting...</p>""")\
                         .format(allowedHost))
         
     @pyqtSlot()
@@ -255,8 +261,10 @@
             else:
                 E5MessageBox.critical(self,
                     self.trUtf8("Edit allowed host"),
-                    self.trUtf8("""<p>The entered address <b>{0}</b> is not"""
-                        """ a valid IP v4 or IP v6 address. Aborting...</p>""")\
+                    self.trUtf8(
+                        """<p>The entered address <b>{0}</b> is not"""
+                        """ a valid IP v4 or IP v6 address."""
+                        """ Aborting...</p>""")\
                         .format(allowedHost))
     
 

eric ide

mercurial