@decorators.null_logger
def is_binary(file, logger=None):

    parameters = ['file', '--mime', file]

    try:
        mime = subprocess.check_output(parameters, universal_newlines=True)
        match = re.search('charset=binary', mime)
    except __HOLE__ as e:
        logger.warning(file)
        logger.warning(e)
        match = True

    return match is not None
dataset/ETHPy150Open moacirosa/git-current-contributors/blame_relative_count/analyser.py/is_binary