[Python-checkins] r88582 - in python/branches/release32-maint: Doc/library/asyncore.rst
giampaolo.rodola
python-checkins at python.org
Fri Feb 25 15:54:08 CET 2011
Author: giampaolo.rodola
Date: Fri Feb 25 15:54:07 2011
New Revision: 88582
Log:
Merged revisions 88581 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88581 | giampaolo.rodola | 2011-02-25 15:50:57 +0100 (ven, 25 feb 2011) | 1 line
(issue 11232) - fix asyncore documentation issue (patch by Sandro Tosi)
........
Modified:
python/branches/release32-maint/ (props changed)
python/branches/release32-maint/Doc/library/asyncore.rst
Modified: python/branches/release32-maint/Doc/library/asyncore.rst
==============================================================================
--- python/branches/release32-maint/Doc/library/asyncore.rst (original)
+++ python/branches/release32-maint/Doc/library/asyncore.rst Fri Feb 25 15:54:07 2011
@@ -309,7 +309,7 @@
asyncore Example basic echo server
----------------------------------
-Here is abasic echo server that uses the :class:`dispatcher` class to accept
+Here is a basic echo server that uses the :class:`dispatcher` class to accept
connections and dispatches the incoming connections to a handler::
import asyncore
@@ -319,7 +319,8 @@
def handle_read(self):
data = self.recv(8192)
- self.send(data)
+ if data:
+ self.send(data)
class EchoServer(asyncore.dispatcher):
More information about the Python-checkins
mailing list