diff -r 9eed155411f0 -r 4a1db75550bd eric6/Preferences/ConfigurationPages/DebuggerGeneralPage.py --- a/eric6/Preferences/ConfigurationPages/DebuggerGeneralPage.py Sat Oct 10 16:03:53 2020 +0200 +++ b/eric6/Preferences/ConfigurationPages/DebuggerGeneralPage.py Sun Oct 11 17:54:52 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