Skip to content

Commit

Permalink
swap two lines
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Feb 26, 2024
1 parent 4f8c0c8 commit 74b6534
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vyper/ast/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def parse_to_ast_with_settings(
"""
if "\x00" in source_code:
raise ParserException("No null bytes (\\x00) allowed in the source code.")
settings, class_types, for_loop_annotations, reformatted_code = pre_parse(source_code)
settings, class_types, for_loop_annotations, python_source = pre_parse(source_code)
try:
py_ast = python_ast.parse(reformatted_code)
py_ast = python_ast.parse(python_source)
except SyntaxError as e:
# TODO: Ensure 1-to-1 match of source_code:reformatted_code SyntaxErrors
raise SyntaxException(str(e), source_code, e.lineno, e.offset) from e
Expand All @@ -72,7 +72,7 @@ def parse_to_ast_with_settings(

annotate_python_ast(
py_ast,
reformatted_code,
python_source,
source_code,
class_types,
for_loop_annotations,
Expand Down

0 comments on commit 74b6534

Please sign in to comment.