wsgi.py (603:a11b80dedc6b) wsgi.py (743:e0f0cd7d244a)
1import atexit
2
3def application(environ, start_response):
4 def at_exit():
1import atexit
2
3def application(environ, start_response):
4 def at_exit():
5 environ['wsgi.errors'].write('At exit called.')
5 environ['wsgi.errors'].write('At exit called.\n')
6 environ['wsgi.errors'].flush()
6
7 atexit.register(at_exit)
8
9 start_response('200', [('Content-Length', '0')])
10 return []
7
8 atexit.register(at_exit)
9
10 start_response('200', [('Content-Length', '0')])
11 return []