[Python-checkins] r82026 - python/trunk/Doc/library/simplehttpserver.rst

senthil.kumaran python-checkins at python.org
Wed Jun 16 19:37:32 CEST 2010


Author: senthil.kumaran
Date: Wed Jun 16 19:37:32 2010
New Revision: 82026

Log:
Addressing RDM's review comments on the doc change.



Modified:
   python/trunk/Doc/library/simplehttpserver.rst

Modified: python/trunk/Doc/library/simplehttpserver.rst
==============================================================================
--- python/trunk/Doc/library/simplehttpserver.rst	(original)
+++ python/trunk/Doc/library/simplehttpserver.rst	Wed Jun 16 19:37:32 2010
@@ -82,15 +82,16 @@
       ``text/`` the file is opened in text mode; otherwise binary mode is used.
 
       The :func:`test` function in the :mod:`SimpleHTTPServer` module is an
-      example which interfaces the :class:`SimpleHTTPRequestHandler` as a
-      Handler to the :mod:`BaseHTTPServer` module.
+      example which creates a server using the
+      :class:`SimpleHTTPRequestHandler` as the Handler.
 
       .. versionadded:: 2.5
          The ``'Last-Modified'`` header.
 
 
 The :mod:`SimpleHTTPServer` module can be used the following manner in order to
-setup a very basic web server serving files relative to the current directory.::
+set up a very basic web server serving files relative to the current
+directory.::
 
         import SimpleHTTPServer
         import SocketServer
@@ -104,8 +105,9 @@
         print "serving at port", PORT
         httpd.serve_forever()
 
-It can also be invoked directly using the ``-m`` switch of interpreter a with
-``port number`` argument.::
+:mod:`SimpleHTTPServer` module can also be invoked directly using the ``-m``
+switch of interpreter with a ``port number`` argument. Similar to previous
+example, this serves the files relative to the current directory.::
 
         python -m SimpleHTTPServer 8000
 


More information about the Python-checkins mailing list