#NEWLINE# def configure_app( app , overrides = None , setup = False ) : #NEWLINE# #INDENT# overrides = ( overrides or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# add_routes ( app ) #NEWLINE# if setup : #NEWLINE# #INDENT# path_norm . setup ( app , ** overrides ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# middleware = path_norm . normalize_path_middleware ( ** overrides ) #NEWLINE# app . middlewares . append ( middleware )