Skip to content

Commit

Permalink
rename a function
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Jan 7, 2024
1 parent afb3215 commit 9678f91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vyper/semantics/analysis/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def visit_For(self, node):
raise IteratorException(
"Cannot iterate over the result of a function call", node.iter
)
_analyse_range_call(node.iter)
_validate_range_call(node.iter)

else:
# iteration over a variable or literal list
Expand Down Expand Up @@ -708,7 +708,7 @@ def visit_IfExp(self, node: vy_ast.IfExp, typ: VyperType) -> None:
self.visit(node.orelse, typ)


def _analyse_range_call(node: vy_ast.Call):
def _validate_range_call(node: vy_ast.Call):
"""
Check that the arguments to a range() call are valid.
:param node: call to range()
Expand Down

0 comments on commit 9678f91

Please sign in to comment.