]> granicus.if.org Git - python/commitdiff
[3.6] bpo-30160: Clarify intended usage of wfile (gh-1300) (GH-1793)
authorZachary Ware <zachary.ware@gmail.com>
Wed, 24 May 2017 21:11:01 +0000 (16:11 -0500)
committerGitHub <noreply@github.com>
Wed, 24 May 2017 21:11:01 +0000 (16:11 -0500)
The library does not enforce compliance with the HTTP protocol,
so violations are not technically disallowed. Extend the stream's
description to avoid suggesting that intentional protocol violations are
not supported.
(cherry picked from commit a083c8e)

Doc/library/http.server.rst

index fb5c1df611d8f29664a39657346ecfb1aa83a98b..b29020bc7ca5cab614d529e64363b7d0c1b07175 100644 (file)
@@ -105,7 +105,8 @@ of which this module provides three different variants:
 
       Contains the output stream for writing a response back to the
       client. Proper adherence to the HTTP protocol must be used when writing to
-      this stream.
+      this stream in order to achieve successful interoperation with HTTP
+      clients.
 
       .. versionchanged:: 3.6
          This is an :class:`io.BufferedIOBase` stream.