summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-30 21:31:08 (GMT)
committerGeorg Brandl <georg@python.org>2014-10-30 21:31:08 (GMT)
commitdd6b84d7159b4f8a9e0f013be4b8969de6178359 (patch)
tree8c62d6c7fda240c7bff15903e9c58b689ef39abf /Doc/tools
parentbbf3a40c401d9ff39353d906b24726310e18e3ce (diff)
parentf2b56518f90c50b49e2d91e3d2d01715c612cd19 (diff)
downloadcpython-dd6b84d7159b4f8a9e0f013be4b8969de6178359.zip
cpython-dd6b84d7159b4f8a9e0f013be4b8969de6178359.tar.gz
cpython-dd6b84d7159b4f8a9e0f013be4b8969de6178359.tar.bz2
merge with 3.4
Diffstat (limited to 'Doc/tools')
-rwxr-xr-xDoc/tools/rstlint.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py
index 2cc3d12..39fb7e8 100755
--- a/Doc/tools/rstlint.py
+++ b/Doc/tools/rstlint.py
@@ -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):