--- a/src/eric7/EricNetwork/EricHostnameInputWidget.py Tue Aug 29 09:55:24 2023 +0200 +++ b/src/eric7/EricNetwork/EricHostnameInputWidget.py Tue Aug 29 16:50:17 2023 +0200 @@ -16,6 +16,7 @@ """ Class implementing an input widget for network host names. """ + def __init__(self, parent=None): """ Constructor @@ -29,9 +30,7 @@ self.setValidator( QRegularExpressionValidator( - QRegularExpression( - r"""([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])""" - ) + QRegularExpression(r"""([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])""") ) ) self.setMaxLength(63)