From 665a71b91aac628f6e10fef3eb3d0649cf7fb747 Mon Sep 17 00:00:00 2001 From: Philippe Ombredanne Date: Thu, 3 Oct 2024 23:47:52 +0200 Subject: [PATCH] Use correct regex escape in doctest Signed-off-by: Philippe Ombredanne --- src/cluecode/copyrights.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluecode/copyrights.py b/src/cluecode/copyrights.py index 5b0e21f300..190ff2082a 100644 --- a/src/cluecode/copyrights.py +++ b/src/cluecode/copyrights.py @@ -4450,7 +4450,7 @@ def remove_code_comment_markers(s): Return ``s`` removing code comments such as C and C++ style comment markers and assimilated >>> remove_code_comment_markers(r"\\*#%; /\\/*a*/b/*c\\d#e%f \\*#%; /") - 'a b c\\\d e f' + 'a b c\\\\d e f' """ return (s .replace('/*', ' ')