From ad6d412ee862613c967b5e72aaa55dc7f8e1bdf6 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 10 Feb 2014 15:39:23 -0600 Subject: [PATCH] Fix #7369: "sed expression must be raw string" Signed-off-by: Zack Cerza --- teuthology/task/internal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index b916f11a9..229dc800c 100644 --- a/teuthology/task/internal.py +++ b/teuthology/task/internal.py @@ -298,8 +298,8 @@ def sudo(ctx, config): log.info('Configuring sudo...') sudoers_file = '/etc/sudoers' backup_ext = '.orig.teuthology' - tty_expr = 's/^\([^#]*\) \(requiretty\)/\1 !\2/g' - pw_expr = 's/^\([^#]*\) !\(visiblepw\)/\1 \2/g' + tty_expr = r's/^\([^#]*\) \(requiretty\)/\1 !\2/g' + pw_expr = r's/^\([^#]*\) !\(visiblepw\)/\1 \2/g' run.wait( ctx.cluster.run( -- 2.47.3