mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix use of codecs.escape_decode()
This commit is contained in:
parent
5204e94bda
commit
20d7f929be
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ def main():
|
||||||
line = re.sub(r'(\\[0-9]{1,3})', r'\\\1', line)
|
line = re.sub(r'(\\[0-9]{1,3})', r'\\\1', line)
|
||||||
line = module.safe_eval(line)
|
line = module.safe_eval(line)
|
||||||
|
|
||||||
line = codecs.escape_decode(line)
|
line = codecs.escape_decode(line)[0]
|
||||||
|
|
||||||
present(module, dest, params['regexp'], line,
|
present(module, dest, params['regexp'], line,
|
||||||
ins_aft, ins_bef, create, backup, backrefs)
|
ins_aft, ins_bef, create, backup, backrefs)
|
||||||
|
|
Loading…
Reference in a new issue