summaryrefslogtreecommitdiffstats
path: root/Doc/library/http.server.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-10-13 20:12:09 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-10-13 20:12:09 (GMT)
commit98b28fddd8e63e1a9410facee3e41925eed8ac46 (patch)
tree410d277cbb20078d5fd226e8dd4d24bd225237d8 /Doc/library/http.server.rst
parent6039db8de30b5c20ba864cc4127fbfabf6fc0641 (diff)
parentbfdcd436f0410e2b3eb34ce4fd7411488d3f13fb (diff)
downloadcpython-98b28fddd8e63e1a9410facee3e41925eed8ac46.zip
cpython-98b28fddd8e63e1a9410facee3e41925eed8ac46.tar.gz
cpython-98b28fddd8e63e1a9410facee3e41925eed8ac46.tar.bz2
Issue #18758: Fixed and improved cross-references.
Diffstat (limited to 'Doc/library/http.server.rst')
-rw-r--r--Doc/library/http.server.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst
index ca66c40..113ac44 100644
--- a/Doc/library/http.server.rst
+++ b/Doc/library/http.server.rst
@@ -29,8 +29,8 @@ handler. Code to create and run the server looks like this::
.. class:: HTTPServer(server_address, RequestHandlerClass)
- This class builds on the :class:`TCPServer` class by storing the server
- address as instance variables named :attr:`server_name` and
+ This class builds on the :class:`~socketserver.TCPServer` class by storing
+ the server address as instance variables named :attr:`server_name` and
:attr:`server_port`. The server is accessible by the handler, typically
through the handler's :attr:`server` instance variable.
@@ -326,7 +326,7 @@ of which this module provides three different variants:
file's contents are returned; otherwise a directory listing is generated
by calling the :meth:`list_directory` method. This method uses
:func:`os.listdir` to scan the directory, and returns a ``404`` error
- response if the :func:`listdir` fails.
+ response if the :func:`~os.listdir` fails.
If the request was mapped to a file, it is opened and the contents are
returned. Any :exc:`OSError` exception in opening the requested file is