Fix #5679 again after recent changes in core

reviewable/pr18780/r1
Jakub Jirutka 11 years ago
parent 3494d67f30
commit f39b8cae95

@ -350,9 +350,8 @@ def main():
if ins_bef is None and ins_aft is None:
ins_aft = 'EOF'
# Replace the newline character with an actual newline. Don't replace
# escaped \\n, hence sub and not str.replace.
line = re.sub(r'\n', os.linesep, params['line'])
# Replace the newline character with an actual newline.
line = params['line'].decode('string_escape')
present(module, dest, params['regexp'], line,
ins_aft, ins_bef, create, backup, backrefs)

Loading…
Cancel
Save