eric6/Preferences/ConfigurationPages/DebuggerGeneralPage.py

branch
multi_processing
changeset 7802
eefe954f01e8
parent 7422
9a008ab4811b
parent 7775
4a1db75550bd
child 7923
91e843545d9a
--- a/eric6/Preferences/ConfigurationPages/DebuggerGeneralPage.py	Sun Jul 05 11:11:24 2020 +0200
+++ b/eric6/Preferences/ConfigurationPages/DebuggerGeneralPage.py	Sun Oct 18 12:35:30 2020 +0200
@@ -7,10 +7,10 @@
 Module implementing the Debugger General configuration page.
 """
 
-
+import re
 import socket
 
-from PyQt5.QtCore import Qt, QAbstractItemModel, QModelIndex, QRegExp, pyqtSlot
+from PyQt5.QtCore import pyqtSlot, Qt, QAbstractItemModel, QModelIndex
 from PyQt5.QtGui import QBrush, QColor
 from PyQt5.QtWidgets import QLineEdit, QInputDialog
 from PyQt5.QtNetwork import QNetworkInterface, QAbstractSocket, QHostAddress
@@ -91,8 +91,7 @@
             index = -1
             for i in range(len(interfaces)):
                 if (
-                    QRegExp(".*{0}.*".format(interface))
-                    .exactMatch(interfaces[i])
+                    re.fullmatch(".*{0}.*".format(interface), interfaces[i])
                 ):
                     index = i
                     break

eric ide

mercurial