diff -r c4d0cac9b5c9 -r aff39db4dacc eric6/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardCharactersDialog.py --- a/eric6/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardCharactersDialog.py Sat Sep 21 22:03:03 2019 +0200 +++ b/eric6/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardCharactersDialog.py Mon Sep 23 19:10:42 2019 +0200 @@ -10,12 +10,14 @@ from PyQt5.QtCore import QRegExp from PyQt5.QtGui import QRegExpValidator -from PyQt5.QtWidgets import QWidget, QDialog, QVBoxLayout, QHBoxLayout, \ - QScrollArea, QPushButton, QSpacerItem, QSizePolicy, QComboBox, QLineEdit, \ - QLabel +from PyQt5.QtWidgets import ( + QWidget, QDialog, QVBoxLayout, QHBoxLayout, QScrollArea, QPushButton, + QSpacerItem, QSizePolicy, QComboBox, QLineEdit, QLabel +) -from .Ui_QRegularExpressionWizardCharactersDialog import \ +from .Ui_QRegularExpressionWizardCharactersDialog import ( Ui_QRegularExpressionWizardCharactersDialog +) class QRegularExpressionWizardCharactersDialog( @@ -592,8 +594,10 @@ # character ranges for entrieslist in self.rangesEntries: - if not entrieslist[1].text() or \ - not entrieslist[2].text(): + if ( + not entrieslist[1].text() or + not entrieslist[2].text() + ): continue formatIdentifier = entrieslist[0].itemData( entrieslist[0].currentIndex()) @@ -604,10 +608,12 @@ self.__formatCharacter(char2, formatIdentifier)) if regexp: - if (regexp.startswith("\\") and - regexp.count("\\") == 1 and - "-" not in regexp) or \ - len(regexp) == 1: + if ( + (regexp.startswith("\\") and + regexp.count("\\") == 1 and + "-" not in regexp) or + len(regexp) == 1 + ): return regexp else: return "[{0}]".format(regexp)