#NEWLINE# def read_version( dev ) : #NEWLINE# #INDENT# status = ykds_alloc ( ) #NEWLINE# try : #NEWLINE# #INDENT# if yk_get_status ( dev , status ) : #NEWLINE# #INDENT# return ( ykds_version_major ( status ) , ykds_version_minor ( status ) , ykds_version_build ( status ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( 0 , 0 , 0 ) #NEWLINE# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# ykds_free ( status )