#NEWLINE# def get_application( self , environ , filename ) : #NEWLINE# #INDENT# if os . path . isdir ( filename ) : #NEWLINE# #INDENT# t = 'dir' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# t = os . path . splitext ( filename ) [ 1 ] #NEWLINE# #UNINDENT# constructor = self . constructors . get ( t , self . constructors . get ( '*' ) ) #NEWLINE# if ( constructor is None ) : #NEWLINE# #INDENT# return t #NEWLINE# #UNINDENT# app = constructor ( self , environ , filename ) #NEWLINE# if ( app is None ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# return app