#NEWLINE# def __call__( self , environ , start_response ) : #NEWLINE# #INDENT# path = environ . get ( 'PATH_INFO' , '' ) #NEWLINE# content = super ( WSGIWriter , self ) . __call__ ( content_type ) #NEWLINE# if ( content is None ) : #NEWLINE# #INDENT# start_response ( '404 NOT FOUND' , [ ( 'Content-Type' , 'text/plain' ) ] ) #NEWLINE# return [ 'Not Found' ] #NEWLINE# #UNINDENT# content_type = self . _guess_content_type ( path ) #NEWLINE# if ( not content_type ) : #NEWLINE# #INDENT# content_type = 'application/octet-stream' #NEWLINE# log . warn ( 'Serving literal file of unknown content type: /%s  (Hint: Add / suffix to treat it as a directory)' , path ) #NEWLINE# #UNINDENT# start_response ( '200 OK' , [ ( 'Content-Type' , content_type ) ] ) #NEWLINE# return [ content ]