def read_file(path):
    "Read the entire file content from path in binary mode."
    assert os.path.isfile(path)
    with open(path, 'rb') as file:
        return file.read()
Read the entire file content from path in binary mode.
recipes/Python/577485_Self_Extracting_Archiver/recipe-577485.py