From 4b44aa479949bdbff554017edf22813572fd03ca Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Sun, 17 May 2015 09:28:14 -0700 Subject: [PATCH] Fix use of codecs.escape_decode() --- files/lineinfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/lineinfile.py b/files/lineinfile.py index d8b50c13cec..fd589b03e8d 100644 --- a/files/lineinfile.py +++ b/files/lineinfile.py @@ -376,7 +376,7 @@ def main(): if backrefs: line = re.sub(r'(\\[0-9]{1,3})', r'\\\1', line) - line = codecs.escape_decode(line) + line = codecs.escape_decode(line)[0] present(module, dest, params['regexp'], line, ins_aft, ins_bef, create, backup, backrefs)