Use flags when checking whether content was added previously

This commit is contained in:
Loren Gordon 2015-10-21 16:55:26 -04:00
parent b25e609e9e
commit 6d6121a6e5

View file

@ -1452,7 +1452,8 @@ def replace(path,
# Search for content, to avoid pre/appending the
# content if it was pre/appended in a previous run.
if re.search('^{0}$'.format(re.escape(content)),
r_data):
r_data,
flags=flags_num):
# Content was found, so set found.
found = True