#NEWLINE# def check_app_config_brackets( self ) : #NEWLINE# #INDENT# 'Check for Application config with extraneous brackets in section names.' #NEWLINE# for ( sn , app ) in cherrypy . tree . apps . items ( ) : #NEWLINE# #INDENT# if ( not isinstance ( key , cherrypy . Application ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( not app . config ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# for key in app . config . keys ( ) : #NEWLINE# #INDENT# if ( key . startswith ( '[' ) or key . endswith ( ']' ) ) : #NEWLINE# #INDENT# warnings . warn ( ( 'The application mounted at %r has config section names with extraneous brackets: %r. Config *files* need brackets; config *dicts* (e.g. passed to tree.mount) do not.' % ( sn , key ) ) )