#NEWLINE# def __call__( self , environ , start_response ) : #NEWLINE# #INDENT# host = environ . get ( 'HTTP_HOST' , '' ) #NEWLINE# host = host . split ( ':' ) [ 0 ] #NEWLINE# for ( pattern , app ) in self . mapping : #NEWLINE# #INDENT# if re . match ( ( ( '^' + pattern ) + '$' ) , host ) : #NEWLINE# #INDENT# return app ( environ , start_response ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# start_response ( '404 Not Found' , [ ] ) #NEWLINE# return [ b'' ]