def patch(filepath, debug):
print("<STR_LIT>" % filepath)<EOL>with open(filepath, "<STR_LIT:r>") as infile:<EOL><INDENT>origin_content = infile.read()<EOL><DEDENT>new_content = origin_content.replace("<STR_LIT>", """<STR_LIT>""")<EOL>assert new_content!=origin_content, "<STR_LIT>" % origin_content<EOL>with open(filepath, "<STR_LIT:w>") as outfile:<EOL><INDENT>outfile.write(new_content)<EOL><DEDENT>print("<STR_LIT>" % filepath)<EOL>if debug:<EOL><INDENT>print("<STR_LIT:->"*<NUM_LIT>)<EOL>print(repr(new_content))<EOL>print("<STR_LIT:->"*<NUM_LIT>)<EOL>print(new_content)<EOL>print("<STR_LIT:->"*<NUM_LIT>)<EOL><DEDENT>
replace 'pause' from windows batch.
Needed for ci.appveyor.com
see: https://github.com/appveyor/ci/issues/596