File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,13 +76,13 @@ below::
7676 status = '200 OK'
7777 output = b'Hello World!'
7878
79- print("application debug #1", file=environ['wsgi.errors']))
79+ print("application debug #1", file=environ['wsgi.errors'])
8080
8181 response_headers = [('Content-type', 'text/plain'),
8282 ('Content-Length', str(len(output)))]
8383 start_response(status, response_headers)
8484
85- print("application debug #2", file=environ['wsgi.errors']))
85+ print("application debug #2", file=environ['wsgi.errors'])
8686
8787 return [output]
8888
@@ -95,7 +95,7 @@ below::
9595
9696 Alternatively, always use `print ` as a statement rather than a function::
9797
98- print >> environ['wsgi.errors']) , "application debug #N"
98+ print >> environ['wsgi.errors'], "application debug #N"
9999
100100If 'wsgi.errors' is not available to the code which needs to output log
101101messages, then it should explicitly direct output from 'print'
You can’t perform that action at this time.
0 commit comments