Skip to content

Commit

Permalink
refactor: Use ast.unparse instead of our own unparser
Browse files Browse the repository at this point in the history
Now that we build everything using our expressions, and that the unparser is only used in log messages, it's not really useful to keep it in the code base, and we can use `ast.unparse` instead, even if it has some quirks (like using redundant parenthesis wrapping).
  • Loading branch information
pawamoy committed Feb 12, 2024
1 parent 439f65e commit 6fe1316
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 396 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
"astunparse>=1.6; python_version < '3.9'",
"colorama>=0.4",
]

Expand Down
Loading

0 comments on commit 6fe1316

Please sign in to comment.