#NEWLINE# def sync_changes( self ) : #NEWLINE# #INDENT# '\n        Apply any changes made to this object to the backing unit in the\n        xliff file.\n        ' #NEWLINE# if ( None in self . strings ) : #NEWLINE# #INDENT# self . target_string = self . strings [ None ] #NEWLINE# xml = self . unit . xmlelement #NEWLINE# target = xml . find ( self . unit . namespaced ( 'target' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# xml = self . unit . xmlelement #NEWLINE# target = xml . find ( self . unit . namespaced ( 'target' ) ) #NEWLINE# if ( target is not None ) : #NEWLINE# #INDENT# xml . remove ( target ) #NEWLINE# #UNINDENT# #UNINDENT# if ( 'approved' in xml . attrib ) : #NEWLINE# #INDENT# del xml . attrib [ 'approved' ] #NEWLINE# #UNINDENT# if ( ( target is not None ) and ( 'state' in target . attrib ) ) : #NEWLINE# #INDENT# del target . attrib [ 'state' ]