From c7ebe556ad94cf8078155c4d647d13e85b4dbc73 Mon Sep 17 00:00:00 2001 From: Chris McCormick Date: Sun, 7 Jul 2024 20:42:52 +0100 Subject: [PATCH] Fix #346 SyntaxWarning using raw string. --- piku.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piku.py b/piku.py index 0562dd5..1dd53f6 100755 --- a/piku.py +++ b/piku.py @@ -994,7 +994,7 @@ def spawn_app(app, deltas={}): h.write(buffer) # prevent broken config from breaking other deploys try: - nginx_config_test = str(check_output("nginx -t 2>&1 | grep -E '{}\.conf:[0-9]+$'".format(app), env=environ, shell=True)) + nginx_config_test = str(check_output(r"nginx -t 2>&1 | grep -E '{}\.conf:[0-9]+$'".format(app), env=environ, shell=True)) except Exception: nginx_config_test = None if nginx_config_test: