[Python-checkins] cpython: Fix markup and working in the doc.

ezio.melotti python-checkins at python.org
Thu May 12 00:11:13 CEST 2011


http://hg.python.org/cpython/rev/3e7c2afd0c16
changeset:   70045:3e7c2afd0c16
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Thu May 12 01:10:57 2011 +0300
summary:
  Fix markup and working in the doc.

files:
  Doc/library/http.server.rst    |  16 +++++++++-------
  Doc/library/urllib.request.rst |   4 ++--
  2 files changed, 11 insertions(+), 9 deletions(-)


diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst
--- a/Doc/library/http.server.rst
+++ b/Doc/library/http.server.rst
@@ -185,11 +185,12 @@
       are picked up from the :meth:`version_string` and
       :meth:`date_time_string` methods, respectively. If the server does not
       intend to send any other headers using the :meth:`send_header` method,
-      then send_response should be followed by a :meth:`end_headers` call.
+      then :meth:`send_response` should be followed by a :meth:`end_headers`
+      call.
 
-      ..versionchanged:: 3.3
-      Writing of headers to internal buffer and need to call
-      :meth:`end_headers` explicitly.
+      .. versionchanged:: 3.3
+         Headers are stored to an internal buffer and :meth:`end_headers`
+         needs to be called explicitly.
 
 
    .. method:: send_header(keyword, value)
@@ -200,7 +201,7 @@
       specifying its value. Note that, after the send_header calls are done,
       :meth:`end_headers` MUST BE called in order to complete the operation.
 
-      .. versionchanged:: 3.2 Storing the headers in an internal buffer
+      .. versionchanged:: 3.2 Headers are stored in an internal buffer.
 
 
    .. method:: send_response_only(code, message=None)
@@ -216,9 +217,10 @@
 
       Adds a blank line
       (indicating the end of the HTTP headers in the response)
-      to the headers buffer and calls :meth:`flush_headers()`
+      to the headers buffer and calls :meth:`flush_headers()`.
 
-      .. versionchanged:: 3.2 Writing the buffered headers to the output stream.
+      .. versionchanged:: 3.2
+         The buffered headers are written to the output stream.
 
    .. method:: flush_headers()
 
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -276,8 +276,8 @@
    :exc:`ValueError` when presented with an authentication scheme other than
    Digest or Basic.
 
-   ..versionchanged:: 3.3
-   Raise ValueError on unsupported Authentication Scheme.
+   .. versionchanged:: 3.3
+      Raise :exc:`ValueError` on unsupported Authentication Scheme.
 
 
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list