mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	rstlint: recognize "deprecated-removed" directive
This commit is contained in:
		
							parent
							
								
									6b4c847c4f
								
							
						
					
					
						commit
						f2b56518f9
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -15,7 +15,6 @@ | |||
| import re | ||||
| import sys | ||||
| import getopt | ||||
| import subprocess | ||||
| from os.path import join, splitext, abspath, exists | ||||
| from collections import defaultdict | ||||
| 
 | ||||
|  | @ -33,7 +32,8 @@ | |||
|     '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 @@ | |||
| 
 | ||||
| checker_props = {'severity': 1, 'falsepositives': False} | ||||
| 
 | ||||
| 
 | ||||
| def checker(*suffixes, **kwds): | ||||
|     """Decorator to register a function as a checker.""" | ||||
|     def deco(func): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl