File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -2168,24 +2168,6 @@ def visit_try(
2168
2168
return self .visit_tryexcept (node , parent )
2169
2169
return None
2170
2170
2171
- def visit_tryfinally (self , node : "ast.Try" , parent : NodeNG ) -> nodes .TryFinally :
2172
- """visit a TryFinally node by returning a fresh instance of it"""
2173
- if sys .version_info >= (3 , 8 ):
2174
- newnode = nodes .TryFinally (
2175
- lineno = node .lineno ,
2176
- col_offset = node .col_offset ,
2177
- end_lineno = node .end_lineno ,
2178
- end_col_offset = node .end_col_offset ,
2179
- parent = parent ,
2180
- )
2181
- else :
2182
- newnode = nodes .TryFinally (node .lineno , node .col_offset , parent )
2183
- newnode .postinit (
2184
- [self .visit (child , newnode ) for child in node .body ],
2185
- [self .visit (n , newnode ) for n in node .finalbody ],
2186
- )
2187
- return newnode
2188
-
2189
2171
def visit_tuple (self , node : "ast.Tuple" , parent : NodeNG ) -> nodes .Tuple :
2190
2172
"""visit a Tuple node by returning a fresh instance of it"""
2191
2173
context = self ._get_context (node )
You can’t perform that action at this time.
0 commit comments