#NEWLINE# def object_diff( prev , next_ ) : #NEWLINE# #INDENT# '\n    Return a description of the differences between two dicts.\n    Assume the keys are the same either way.\n    ' #NEWLINE# diffs = set ( ) #NEWLINE# def _( p , n , pre = '' ) : #NEWLINE# #INDENT# for ( key , value ) in p . items ( ) : #NEWLINE# #INDENT# if ( p [ key ] != n [ key ] ) : #NEWLINE# #INDENT# if isinstance ( value , collections . Mapping ) : #NEWLINE# #INDENT# _ ( p [ key ] , n [ key ] , ( ( pre + key ) + '.' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# diffs . add ( ( pre + key ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# _ ( next_ , next_ ) #NEWLINE# return diffs