Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address outstanding issues #12

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Address outstanding issues #12

wants to merge 6 commits into from

Conversation

cbillingham
Copy link
Owner

Finally got around to addressing our outstanding issues
Also fixed a strange ast parsing bug I encountered where assign nodes were skipping the following sibling.

…h no docstring.

Introduces a way to peek at the next item of the siblings when iterating,
without letting the generator increment past that item.
We use tokenize to parse python tokens, but since we can start the
parser on a line in the middle of the file, it doesn't have indentation
context from previous lines and can throw an IndentationError. In these
cases we can safely catch and stop iteration since we haven't found
the tokens we are looking for anyway.
@cbillingham
Copy link
Owner Author

Ha github actions dropped python2.7. I suppose we should as well. I did test locally in 2.7 for kicks and made few changes so it was compatible. Still works in 2.7 technically but we should probably just drop support I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant