From 5234ef2275710089a4b455f364b832445901a188 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sun, 12 Jan 2025 16:02:35 +0000 Subject: [PATCH] Fix syntax warning in Python 3.12 Although this is written as a raw string, it's within a non-raw docstring, necessitating an extra layer of backslash-escaping. Contributed by Peter Chubb in https://bugs.debian.org/1078728. --- spf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spf.py b/spf.py index a7860e2..9c674f2 100755 --- a/spf.py +++ b/spf.py @@ -1744,7 +1744,7 @@ def quote_value(s): >>> quote_value('abc"def') '"abc\\\\"def"' - >>> quote_value(r'abc\def') + >>> quote_value(r'abc\\def') '"abc\\\\\\\\def"' >>> quote_value('abc..def')