def has_same_content(filename1: str, filename2: str, read_mode='rb') -> bool:
    """
    Check if the content of two files are same
    """
    with open(filename1, mode=read_mode) as file1:  # pylint:disable=unspecified-encoding
        with open(filename2, mode=read_mode) as file2:  # pylint:disable=unspecified-encoding
            return file1.read() == file2.read()