Skip to content
Snippets Groups Projects
Commit 0df880c9 authored by Svetlana Tkachenko's avatar Svetlana Tkachenko
Browse files

[plugins/sed] escape backslashes

parent 98ccb767
No related branches found
No related tags found
No related merge requests found
......@@ -125,6 +125,9 @@ class sed(object):
if 'g' in sed_part3:
flag_global = 0
# Escape escapes -- dwfreed
sed_part2 = re.sub(r"\\", r"\\\\", sed_part2, count=0)
# WARNING: re.sub does not have a flags
# parameter for Python version < 2.7
# for Python < 2.7, flag 'i' will be ignored
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment