def __substitute_replace_pairs(self):
self._set_magic_constants()<EOL>routine_source = []<EOL>i = <NUM_LIT:0><EOL>for line in self._routine_source_code_lines:<EOL><INDENT>self._replace['<STR_LIT>'] = "<STR_LIT>" % (i + <NUM_LIT:1>)<EOL>for search, replace in self._replace.items():<EOL><INDENT>tmp = re.findall(search, line, re.IGNORECASE)<EOL>if tmp:<EOL><INDENT>line = line.replace(tmp[<NUM_LIT:0>], replace)<EOL><DEDENT><DEDENT>routine_source.append(line)<EOL>i += <NUM_LIT:1><EOL><DEDENT>self._routine_source_code = "<STR_LIT:\n>".join(routine_source)<EOL>
Substitutes all replace pairs in the source of the stored routine.