6 regex
= re
.compile(r
'(\w+)::\1(\s*)\((.*)\)(\s*):(\s*)Expression\(EXPRESSION_CONSTRUCTOR_PARAMETER_VALUES\)', re
.M | re
.S
)
12 rep
= regex
.sub(r
'\1::\1\2(\3)\4:\5Expression(EXPRESSION_CONSTRUCTOR_PARAMETER_VALUES(\1))',
19 for fname
in sys
.argv
[1:]: