]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
rstlint: recognize "deprecated-removed" directive
authorGeorg Brandl <georg@python.org>
Thu, 30 Oct 2014 21:30:01 +0000 (22:30 +0100)
committerGeorg Brandl <georg@python.org>
Thu, 30 Oct 2014 21:30:01 +0000 (22:30 +0100)
Doc/tools/rstlint.py

index 2cc3d1277ca05849ba3d22120f080ea6fa4ac411..39fb7e86f2e7aa79e21b6941c260b2d56353fe7b 100755 (executable)
@@ -15,7 +15,6 @@ import os
 import re
 import sys
 import getopt
-import subprocess
 from os.path import join, splitext, abspath, exists
 from collections import defaultdict
 
@@ -33,7 +32,8 @@ directives = [
     'autoexception', 'autofunction', 'automethod', 'automodule', 'centered',
     'cfunction', 'class', 'classmethod', 'cmacro', 'cmdoption', 'cmember',
     'code-block', 'confval', 'cssclass', 'ctype', 'currentmodule', 'cvar',
-    'data', 'deprecated', 'describe', 'directive', 'doctest', 'envvar', 'event',
+    'data', 'deprecated-removed', 'deprecated(?!-removed)', 'describe', 'directive',
+    'doctest', 'envvar', 'event',
     'exception', 'function', 'glossary', 'highlight', 'highlightlang', 'index',
     'literalinclude', 'method', 'module', 'moduleauthor', 'productionlist',
     'program', 'role', 'sectionauthor', 'seealso', 'sourcecode', 'staticmethod',
@@ -51,6 +51,7 @@ checkers = {}
 
 checker_props = {'severity': 1, 'falsepositives': False}
 
+
 def checker(*suffixes, **kwds):
     """Decorator to register a function as a checker."""
     def deco(func):