From: Zack Cerza Date: Mon, 10 Feb 2014 21:39:23 +0000 (-0600) Subject: Fix #7369: "sed expression must be raw string" X-Git-Tag: 1.1.0~1651^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F186%2Fhead;p=teuthology.git Fix #7369: "sed expression must be raw string" Signed-off-by: Zack Cerza --- 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(