removed unused function

This commit is contained in:
Denis Bilenko
2008-10-14 13:29:10 +07:00
parent 865156d82b
commit 5803a91f44

View File

@@ -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()