diff options
| author | Denis Bilenko <denis@ag-projects.com> | 2008-10-14 13:29:10 +0700 |
|---|---|---|
| committer | Denis Bilenko <denis@ag-projects.com> | 2008-10-14 13:29:10 +0700 |
| commit | 5803a91f4447d04579217ac418736492fabbb5da (patch) | |
| tree | 0f05083ea22c0ae3b24c28346bf7f3f56cdcfb06 /examples | |
| parent | 865156d82b63a5d7da4691b4cacb7f76ed3d6614 (diff) | |
| download | eventlet-5803a91f4447d04579217ac418736492fabbb5da.tar.gz | |
removed unused function
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/twisted_ex2.py | 6 |
1 files changed, 1 insertions, 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() |
