pkgcheck.utils module

Various miscellaneous utility functions.

pkgcheck.utils.is_binary(path, blocksize=1024)[source]

Check if a given file is binary or not.

Parameters:
  • path – Path to a file to check.

  • blocksize – Amount of bytes to read for determination.

Returns:

True if appears to be a binary, otherwise False.