Skip to content

The is_binary() outcome for a PNG file changed with 0.5.0 #642

@rmartin16

Description

@rmartin16

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
>>> 
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions