<s> """<STR_LIT>""" <EOL> from pprint import pformat <EOL> try : <EOL> bytes <EOL> except ImportError : <EOL> bytes = str <EOL> def simple_app ( environ , start_response ) : <EOL> """<STR_LIT>""" <EOL> status = '<STR_LIT>' <EOL> response_headers = [ ( '<STR_LIT>' , '<STR_LIT>' ) ] <EOL> start_response ( status , response_headers ) <EOL> return [ b'<STR_LIT>' ] <EOL> def more_interesting_app ( environ , start_response ) : <EOL> start_response ( '<STR_LIT>' , [ ( '<STR_LIT>' , '<STR_LIT>' ) ] ) <EOL> return [ pformat ( environ ) . encode ( '<STR_LIT:utf-8>' ) ] <EOL> def post_status_headers_app ( environ , start_response ) : <EOL> headers = [ ] <EOL> start_response ( '<STR_LIT>' , headers ) <EOL> headers . append ( ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> return [ b'<STR_LIT>' ] <EOL> def raises_app ( environ , start_response ) : <EOL> raise TypeError ( "<STR_LIT>" ) </s>
