File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,13 +76,13 @@ below::
76
76
status = '200 OK'
77
77
output = b'Hello World!'
78
78
79
- print("application debug #1", file=environ['wsgi.errors']))
79
+ print("application debug #1", file=environ['wsgi.errors'])
80
80
81
81
response_headers = [('Content-type', 'text/plain'),
82
82
('Content-Length', str(len(output)))]
83
83
start_response(status, response_headers)
84
84
85
- print("application debug #2", file=environ['wsgi.errors']))
85
+ print("application debug #2", file=environ['wsgi.errors'])
86
86
87
87
return [output]
88
88
@@ -95,7 +95,7 @@ below::
95
95
96
96
Alternatively, always use `print ` as a statement rather than a function::
97
97
98
- print >> environ['wsgi.errors']) , "application debug #N"
98
+ print >> environ['wsgi.errors'], "application debug #N"
99
99
100
100
If 'wsgi.errors' is not available to the code which needs to output log
101
101
messages, then it should explicitly direct output from 'print'
You can’t perform that action at this time.
0 commit comments