1
0
forked from VimPlug/jedi

get_except_clauses -> get_except_clause_tests

This commit is contained in:
Dave Halter
2017-04-12 08:40:27 +02:00
parent 7e560bffe8
commit c056105502
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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.