-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Description
The call to is_binary() for the PNG below evaluates to True with 0.4.4 but False with 0.5.0.
❯ python
Python 3.13.1 (main, Jan 18 2025, 11:56:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from binaryornot.check import is_binary
>>>
>>> is_binary("/home/russell/file.png")
True
>>>
❯ python -m pip install binaryornot==0.5.0
Collecting binaryornot==0.5.0
Using cached binaryornot-0.5.0-py3-none-any.whl.metadata (2.8 kB)
Using cached binaryornot-0.5.0-py3-none-any.whl (12 kB)
Installing collected packages: binaryornot
Attempting uninstall: binaryornot
Found existing installation: binaryornot 0.4.4
Uninstalling binaryornot-0.4.4:
Successfully uninstalled binaryornot-0.4.4
Successfully installed binaryornot-0.5.0
❯ python
Python 3.13.1 (main, Jan 18 2025, 11:56:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from binaryornot.check import is_binary
>>> is_binary("/home/russell/file.png")
False
>>>

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels