Skip to content

Commit

Permalink
Use correct regex escape in doctest
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Ombredanne <[email protected]>
  • Loading branch information
pombredanne committed Oct 3, 2024
1 parent 78a73fe commit 665a71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cluecode/copyrights.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('/*', ' ')
Expand Down

0 comments on commit 665a71b

Please sign in to comment.