(filename, file_ext, chunk_id, error_callback)
return True
Return True if chunk_id is a valid psk/psa (file_ext) 'magick number'.
Return True if chunk_id is a valid psk/psa (file_ext) 'magick number'.
Return True if chunk_id is a valid psk / psa ( file_ext ) magick number .
def util_is_header_valid(filename, file_ext, chunk_id, error_callback):
    '''Return True if chunk_id is a valid psk/psa (file_ext) 'magick number'.'''
    if chunk_id != PSKPSA_FILE_HEADER[file_ext]:
        error_callback(
            "File %s is not a %s file. (header mismach)\nExpected: %s \nPresent %s"  % ( 
                filename, file_ext,
                PSKPSA_FILE_HEADER[file_ext], chunk_id)
        )    
        return False
    return True
def util_is_header_valid ( filename , file_ext , chunk_id , error_callback ) : if chunk_id != PSKPSA_FILE_HEADER [ file_ext ] : error_callback ( "File %s is not a %s file. (header mismach)\nExpected: %s \nPresent %s" % ( filename , file_ext , PSKPSA_FILE_HEADER [ file_ext ] , chunk_id ) ) return False return True