Skip to content

Remove short circuit for checking binary#48

Merged
pydanny merged 2 commits intobinaryornot:masterfrom
alcuin2:master
Aug 10, 2019
Merged

Remove short circuit for checking binary#48
pydanny merged 2 commits intobinaryornot:masterfrom
alcuin2:master

Conversation

@alcuin2
Copy link
Copy Markdown
Contributor

@alcuin2 alcuin2 commented Aug 10, 2019

There is a subtle bug introduced by short-circuiting the binary check. If a non-binary file is saved with a .pyc extension, it returns True. This case is not correct.

@pydanny pydanny merged commit 3db1865 into binaryornot:master Aug 10, 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.

2 participants