#NEWLINE# def get_name_val( node ) : #NEWLINE# #INDENT# assert ( isinstance ( node , ast . Name ) and isinstance ( node . up , ast . Assign ) ) #NEWLINE# assign = node . up #NEWLINE# assert ( len ( assign . targets ) == 1 ) #NEWLINE# return ast_eval ( assign . value )