buffer_base: removed send method, use write instead; removed close, it is provided by __getattr__
This commit is contained in:
@@ -40,12 +40,6 @@ class buffer_base(object):
|
|||||||
self.protocol = protocol
|
self.protocol = protocol
|
||||||
self.channel = channel
|
self.channel = channel
|
||||||
|
|
||||||
def send(self, data):
|
|
||||||
self.protocol.transport.write(data)
|
|
||||||
|
|
||||||
def close(self):
|
|
||||||
self.protocol.transport.loseConnection()
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def transport(self):
|
def transport(self):
|
||||||
return self.protocol.transport
|
return self.protocol.transport
|
||||||
|
Reference in New Issue
Block a user