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

bugfix: Import configparser in a consistent way. Filetype detection fails whe… #155

Merged
merged 1 commit into from
Apr 6, 2019

Conversation

Namburgesas
Copy link
Contributor

…n mixing backport/builtin versions. Specifically, in high_entropy_strings.analyze(), backports.configparser.Error is not caught if what we are looking for is configparse.Error.

To reproduce, pip install configparser on python 3 (i.e. the backport version) and run on a file that is not an .ini file.

@Namburgesas Namburgesas changed the title Import configparser in a consistent way. Filetype detection fails whe… bugfix: Import configparser in a consistent way. Filetype detection fails whe… Apr 6, 2019
Copy link
Collaborator

@KevinHock KevinHock left a comment

Choose a reason for hiding this comment

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

Great catch! Thank you

@KevinHock KevinHock merged commit 8716e5b into Yelp:master Apr 6, 2019
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.

None yet

2 participants