eric7/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py

branch
eric7
changeset 8415
c6236bed1b50
parent 8358
144a6b854f70
child 8881
54e42bc2437a
equal deleted inserted replaced
8414:8c3b52d1b4b6 8415:c6236bed1b50
637 code += '{0} = re.compile('.format(reVar) 637 code += '{0} = re.compile('.format(reVar)
638 code += '{0}{1}r"""{2}"""'.format( 638 code += '{0}{1}r"""{2}"""'.format(
639 os.linesep, i1string, regexp.replace('"', '\\"')) 639 os.linesep, i1string, regexp.replace('"', '\\"'))
640 if flags: 640 if flags:
641 code += ',{0}{1}{2}'.format(os.linesep, i1string, flags) 641 code += ',{0}{1}{2}'.format(os.linesep, i1string, flags)
642 code += '){0}'.format(estring) 642 code += '{0}){0}'.format(estring)
643 return code 643 return code
644 644
645 645
646 class PyRegExpWizardDialog(QDialog): 646 class PyRegExpWizardDialog(QDialog):
647 """ 647 """

eric ide

mercurial