Skip to content

Commit 2e39954

Browse files
Merge branch 'master' into develop
2 parents 504b786 + bc81e68 commit 2e39954

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/user-guides/debugging-techniques.rst

+3-3
Original file line numberDiff line numberDiff 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

100100
If 'wsgi.errors' is not available to the code which needs to output log
101101
messages, then it should explicitly direct output from 'print'

0 commit comments

Comments
 (0)