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

Add exception handle in dependency analysis to use regex if ast can't be used due to version #2241

Merged
merged 2 commits into from Mar 17, 2023

Conversation

IsaacMilarky
Copy link
Contributor

@IsaacMilarky IsaacMilarky commented Mar 17, 2023

Description
Fixed issue with python dependency analysis where versions older than python 3.4 couldn't be parsed. This was because the current version of python's ast (abstract syntax tree) module only supports versions greater than or equal to 3.4. The new method used uses a simple regex to find dependencies if issues are encountered using the ast method.

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Copy link
Member

@sgoggins sgoggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sgoggins sgoggins added the bug-fix Fixes a bug label Mar 17, 2023
@IsaacMilarky IsaacMilarky merged commit ddfe864 into dev Mar 17, 2023
@sgoggins sgoggins added the add-feature Adds new features label Mar 17, 2023
@IsaacMilarky IsaacMilarky deleted the dev-deps-ast-patch branch March 17, 2023 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add-feature Adds new features bug-fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants