summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-06-10 13:37:13 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-06-10 13:37:13 (GMT)
commit0099e72099675209f3816c54bb1f64908c110b66 (patch)
tree7b351bc29a8d70890f84501dde159597c99f23ec /Doc
parent8550d69a84d05107bfffc6cd5c1e4d2e80ce24cb (diff)
downloadcpython-0099e72099675209f3816c54bb1f64908c110b66.zip
cpython-0099e72099675209f3816c54bb1f64908c110b66.tar.gz
cpython-0099e72099675209f3816c54bb1f64908c110b66.tar.bz2
fix markup
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncore.rst11
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/library/asyncore.rst b/Doc/library/asyncore.rst
index e40f507..c4b3ff5 100644
--- a/Doc/library/asyncore.rst
+++ b/Doc/library/asyncore.rst
@@ -223,19 +223,20 @@ any that have been added to the map during asynchronous service) is closed.
garbage-collected.
.. class:: file_dispatcher()
+
A file_dispatcher takes a file descriptor or file object along with an
optional map argument and wraps it for use with the :cfunc:`poll`\ or
:cfunc:`loop`\ functions. If provided a file object or anything with a
:cfunc:`fileno`\ method, that method will be called and passed to the
- :class:`file_wrapper` constructor.
- Availability: UNIX
+ :class:`file_wrapper` constructor. Availability: UNIX
+
+.. class:: file_wrapper()
-.. class::file_wrapper()
A file_wrapper takes an integer file descriptor and calls os.dup() to
duplicate the handle so that the original handle may be closed independently
of the file_wrapper. This class implements sufficient methods to emulate a
- socket for use by the file_dispatcher class.
- Availability: UNIX
+ socket for use by the file_dispatcher class. Availability: UNIX
+
.. _asyncore-example: