gristlabs / asttokens

Annotate Python AST trees with source text and token information
Apache License 2.0
172 stars 34 forks source link

remove dependency on six #155

Closed a-detiste closed 1 month ago

a-detiste commented 1 month ago

It is ready.

a-detiste commented 1 month ago

For what it's worth, a much dumber patch was temporarily used in Debian: https://sources.debian.org/src/python-asttokens/2.4.1-2/debian/patches/remove-six.patch/

The good things is that the CI suite of all reverse dependencies (the one using asttokens) passed fine.

-import six
+class six:
+     PY2 = False
+     PY3 = True
+     string_types = (str,)
alexmojaki commented 1 month ago

Thank you so much!!!