#NEWLINE# def try_update( dct , update ) : #NEWLINE# #INDENT# if set ( update . keys ( ) ) . intersection ( set ( dct . keys ( ) ) ) : #NEWLINE# #INDENT# raise Exception ( 'Updating {} with {} would clobber keys!' . format ( dct , dct ) ) #NEWLINE# #UNINDENT# dct . update ( update )