mirror of
https://github.com/python/cpython.git
synced 2026-05-04 09:31:02 +00:00
ignore
This commit is contained in:
parent
9219c83ec4
commit
367c441a8e
1 changed files with 3 additions and 2 deletions
|
|
@ -1177,8 +1177,9 @@ def iter_ast_classes():
|
|||
def do(cls):
|
||||
if cls.__module__ != 'ast':
|
||||
return
|
||||
if cls is ast.Index:
|
||||
return
|
||||
with warnings.catch_warnings(action="ignore", category=DeprecationWarning):
|
||||
if cls is ast.Index:
|
||||
return
|
||||
# Don't attempt to create instances of abstract AST nodes
|
||||
if _ast._is_abstract(cls):
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue