Skip to content

Commit

Permalink
tweaking comments
Browse files Browse the repository at this point in the history
As title
  • Loading branch information
esc committed Apr 19, 2024
1 parent c1ec0cc commit 7ae7668
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numba_rvsdg/core/datastructures/ast_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def prune_empty(self) -> set[WritableASTBlock]:
# Empty blocks can only have a single jump target.
it = block.jump_targets[0]
# Iterate over the blocks looking for blocks that point to the
# removed block.
# removed block. Then rewire the jump_targets accordingly.
for b in list(self.values()):
if len(b.jump_targets) == 0:
continue
Expand Down Expand Up @@ -220,7 +220,7 @@ def transform(self) -> None:
"""Transform Python function stored as self.code."""
# Convert source code into AST.
tree = ast.parse(textwrap.dedent(inspect.getsource(self.code))).body
# Assert that the code handed in was a function, we can only convert
# Assert that the code handed in was a function, we can only transform
# functions.
assert isinstance(tree[0], ast.FunctionDef)
# Run recursive code generation.
Expand Down

0 comments on commit 7ae7668

Please sign in to comment.