def makeserver(wsgi_server):
 class MyServer(wsgi_server, ):
  def error(self, req):
   w = req.stdout.write
   internalerror()
   w((('Status: ' + context.status) + '\r\n'))
   for (h, v) in context.headers:
    w((((h + ': ') + v) + '\r\n'))
   w(('\r\n' + context.output))
 return MyServer

def makeserver ( wsgi_server ) : class MyServer ( wsgi_server , ) : def error ( self , req ) : w = req . stdout . write internalerror ( ) w ( ( ( 'Status: ' + context . status ) + '\r\n' ) ) for ( h , v ) in context . headers : w ( ( ( ( h + ': ' ) + v ) + '\r\n' ) ) w ( ( '\r\n' + context . output ) ) return MyServer
updates a flup-style wsgiserver with web .