summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-06-16 17:39:51 +0000
committerSenthil Kumaran <orsenthil@gmail.com>2010-06-16 17:39:51 +0000
commit738cc7e6c85342483f8f6ab3f296e8378f246ff3 (patch)
tree0824ed35f85cbfea7388632115b24fd473c148af
parent13d4fafdae869934b740821b07de499de6b94cc3 (diff)
downloadcpython-git-738cc7e6c85342483f8f6ab3f296e8378f246ff3.tar.gz
Merged revisions 82026 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r82026 | senthil.kumaran | 2010-06-16 23:07:32 +0530 (Wed, 16 Jun 2010) | 3 lines Addressing RDM's review comments on the doc change. ........
-rw-r--r--Doc/library/simplehttpserver.rst12
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/library/simplehttpserver.rst b/Doc/library/simplehttpserver.rst
index 79e01d0ea5..ecb93408fa 100644
--- a/Doc/library/simplehttpserver.rst
+++ b/Doc/library/simplehttpserver.rst
@@ -82,15 +82,16 @@ The :mod:`SimpleHTTPServer` module defines the following class:
``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 @@ setup a very basic web server serving files relative to the current directory.::
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