From 01331f1a3cf86fd308e9a134bb867bf01fb191f5 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Sat, 3 Jul 2021 10:35:02 +0200 Subject: bpo-42238: rstlint: Add two new checks. (GH-26966) --- Doc/tools/rstlint.py | 99 +++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 91 insertions(+), 8 deletions(-) diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py index cbcb8eb..c9bff80 100755 --- a/Doc/tools/rstlint.py +++ b/Doc/tools/rstlint.py @@ -42,10 +42,89 @@ directives = [ 'versionchanged' ] -all_directives = '(' + '|'.join(directives) + ')' -seems_directive_re = re.compile(r'(?