#NEWLINE# def _check_no_remaining_kwargs( func , kwargs ) : #NEWLINE# #INDENT# if kwargs : #NEWLINE# #INDENT# raise TypeError ( '{0}() got unexpected keyword argument(s) {1}' . format ( func . __name__ , ', ' . join ( ( "'{0}'" . format ( arg ) for arg in sorted ( kwargs ) ) ) ) )