#NEWLINE# def parse_move( tree ) : #NEWLINE# #INDENT# device_log = tree . DeviceLog #NEWLINE# move = Move ( ) #NEWLINE# add_children ( move , tag . Header ) #NEWLINE# for child in device_log . Device . Info . iterchildren ( ) : #NEWLINE# #INDENT# tag = normalize_tag ( child . tag ) #NEWLINE# attr = ( 'device_info_%s' % tag . lower ( ) ) #NEWLINE# set_attr ( move , attr , child . text ) #NEWLINE# #UNINDENT# normalize_move ( move ) #NEWLINE# return move