forked from VimPlug/jedi
get_except_clauses -> get_except_clause_tests
This commit is contained in:
@@ -153,7 +153,7 @@ def _check_for_exception_catch(node_context, jedi_name, exception, payload=None)
|
||||
and not (branch_type.start_pos < jedi_name.start_pos <= suite.end_pos):
|
||||
return False
|
||||
|
||||
for node in obj.get_except_clauses():
|
||||
for node in obj.get_except_clause_tests():
|
||||
if node is None:
|
||||
return True # An exception block that catches everything.
|
||||
else:
|
||||
|
||||
@@ -741,7 +741,7 @@ class TryStmt(Flow):
|
||||
type = 'try_stmt'
|
||||
__slots__ = ()
|
||||
|
||||
def get_except_clauses(self):
|
||||
def get_except_clause_tests(self):
|
||||
"""
|
||||
Returns the ``test`` nodes found in ``except_clause`` nodes.
|
||||
Returns ``[None]`` for except clauses without an exception given.
|
||||
|
||||
Reference in New Issue
Block a user