foxygit / doom Log in
commit fe9140e3b0805f6827a900a0447d2280c29d6d91
Author:     Emmanuel Ferdman <emmanuelferdman@gmail.com>
AuthorDate: Sat Apr 26 00:33:04 2025 -0700
Commit:     Emmanuel Ferdman <emmanuelferdman@gmail.com>
CommitDate: Sat Apr 26 00:33:04 2025 -0700

    Resolve deprecation warnings of regex library

    Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
---
 man/docgen | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man/docgen b/man/docgen
index dffc1d6a..59579b3e 100755
--- a/man/docgen
+++ b/man/docgen
@@ -433,7 +433,7 @@ def process_file(filename):
                 else:
                     # More documentation text

-                    munged_line = re.sub(r'\s*\/\/\s*', '', line, 1)
+                    munged_line = re.sub(r'\s*\/\/\s*', '', line, count=1)
                     munged_line = re.sub(r'\s*$', '', munged_line)
                     param.add_text(munged_line)