From 5803a91f4447d04579217ac418736492fabbb5da Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Tue, 14 Oct 2008 13:29:10 +0700 Subject: [PATCH] removed unused function --- examples/twisted_ex2.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/twisted_ex2.py b/examples/twisted_ex2.py index 9bb0f8d..5ece6cf 100644 --- a/examples/twisted_ex2.py +++ b/examples/twisted_ex2.py @@ -14,9 +14,6 @@ class LineOnlyReceiver(basic.LineOnlyReceiver): def lineReceived(self, line): self.channel.send(line) - def sendLine(self, line): - return self.transport.writeSequence((line,self.delimiter)) - def connectionLost(self, reason): self.channel.send_exception(reason.value) @@ -25,9 +22,8 @@ class line_only_receiver: def __init__(self, host, port): cc = ClientCreator(reactor, LineOnlyReceiver) - self.channel = channel() self.protocol = block_on(cc.connectTCP(host, port)) - self.protocol.channel = self.channel + self.protocol.channel = self.channel = channel() def readline(self): return self.channel.receive()