summaryrefslogtreecommitdiff
path: root/examples/twisted_basic_server.py
diff options
context:
space:
mode:
authorDenis Bilenko <denis@ag-projects.com>2008-11-03 21:13:37 +0600
committerDenis Bilenko <denis@ag-projects.com>2008-11-03 21:13:37 +0600
commit25963c366b5b377186afe4e6d260efa979d0c875 (patch)
tree6c5cfaab44611cd37706168f411fcede5f8f8cab /examples/twisted_basic_server.py
parentc734ca9bd86f95aa25ee8cebf6c5b4fd1c2194f2 (diff)
downloadeventlet-25963c366b5b377186afe4e6d260efa979d0c875.tar.gz
fixed twisted examples to use the updated twisteds.basic api
Diffstat (limited to 'examples/twisted_basic_server.py')
-rw-r--r--examples/twisted_basic_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/twisted_basic_server.py b/examples/twisted_basic_server.py
index 6af8b7e..3b32e79 100644
--- a/examples/twisted_basic_server.py
+++ b/examples/twisted_basic_server.py
@@ -24,6 +24,6 @@ class Chat:
self.participants.remove(conn)
chat = Chat()
-basic.listenTCP(basic.line_only_receiver, chat.handler, 8007)
+basic.listenTCP(8007, chat.handler, 8007, buffer_class=basic.line_only_receiver)
from twisted.internet import reactor
reactor.run()