Skip to content

Commit

Permalink
Remove print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdebruin committed Jan 14, 2025
1 parent 509687d commit bad45e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rewrite/rewrite/python/utils/tree_visiting_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def visit(self, tree: Optional[Tree], p: P, parent: Optional[Cursor] = None) ->

def visit_space(self, space: Optional[Space], loc: Optional[Union[PySpace.Location, Space.Location]],
p: P) -> Space:
print("Loc", loc, "el,", self._print_element(self.cursor.parent.value))
return super().visit_space(space, loc, p)

def _print_tree(self) -> str:
Expand Down Expand Up @@ -109,8 +108,7 @@ def _print_space(space: Space) -> str:
def print_tree_all(tree: "Tree") -> str:
visitor = TreeVisitingPrinter()
visitor.visit(tree, None, None)
print(visitor._print_tree())
return ""
return visitor._print_tree()

def find_diff_pos(self, cursor_stack, last_cursor_stack):
diff_pos = -1
Expand Down

0 comments on commit bad45e4

Please sign in to comment.