Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2b5651

Browse files
committed
rstlint: recognize "deprecated-removed" directive
1 parent 6b4c847 commit f2b5651

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/tools/rstlint.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import re
1616
import sys
1717
import getopt
18-
import subprocess
1918
from os.path import join, splitext, abspath, exists
2019
from collections import defaultdict
2120

@@ -33,7 +32,8 @@
3332
'autoexception', 'autofunction', 'automethod', 'automodule', 'centered',
3433
'cfunction', 'class', 'classmethod', 'cmacro', 'cmdoption', 'cmember',
3534
'code-block', 'confval', 'cssclass', 'ctype', 'currentmodule', 'cvar',
36-
'data', 'deprecated', 'describe', 'directive', 'doctest', 'envvar', 'event',
35+
'data', 'deprecated-removed', 'deprecated(?!-removed)', 'describe', 'directive',
36+
'doctest', 'envvar', 'event',
3737
'exception', 'function', 'glossary', 'highlight', 'highlightlang', 'index',
3838
'literalinclude', 'method', 'module', 'moduleauthor', 'productionlist',
3939
'program', 'role', 'sectionauthor', 'seealso', 'sourcecode', 'staticmethod',
@@ -51,6 +51,7 @@
5151

5252
checker_props = {'severity': 1, 'falsepositives': False}
5353

54+
5455
def checker(*suffixes, **kwds):
5556
"""Decorator to register a function as a checker."""
5657
def deco(func):

0 commit comments

Comments
 (0)