Skip to content

Commit

Permalink
chore: update walk_tree example
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-10 committed Jul 4, 2024
1 parent 56811ac commit 61e6657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/walk_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
from tree_sitter import Language, Parser, Tree, Node
import tree_sitter_python

PY_LANGUAGE = Language(tree_sitter_python.language(), "python")
PY_LANGUAGE = Language(tree_sitter_python.language())

parser = Parser()
parser.set_language(PY_LANGUAGE)
parser.language = PY_LANGUAGE

tree = parser.parse(bytes("a = 1", "utf8"))

Expand Down

0 comments on commit 61e6657

Please sign in to comment.