[Python-checkins] r88581 - python/branches/py3k/Doc/library/asyncore.rst

giampaolo.rodola python-checkins at python.org
Fri Feb 25 15:50:57 CET 2011


Author: giampaolo.rodola
Date: Fri Feb 25 15:50:57 2011
New Revision: 88581

Log:
(issue 11232) - fix asyncore documentation issue (patch by Sandro Tosi)

Modified:
   python/branches/py3k/Doc/library/asyncore.rst

Modified: python/branches/py3k/Doc/library/asyncore.rst
==============================================================================
--- python/branches/py3k/Doc/library/asyncore.rst	(original)
+++ python/branches/py3k/Doc/library/asyncore.rst	Fri Feb 25 15:50:57 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