Strip newlines from received lines and change file extension
This commit is contained in:
parent
92b9692304
commit
a1051dfa68
|
@ -32,6 +32,7 @@ class Base(Protocol):
|
||||||
self.transport.write(data)
|
self.transport.write(data)
|
||||||
|
|
||||||
def dataReceived(self, data):
|
def dataReceived(self, data):
|
||||||
|
data = data.rstrip()
|
||||||
log("Data received from %s:%s -- %s" % (self.addr.host, self.addr.port, data))
|
log("Data received from %s:%s -- %s" % (self.addr.host, self.addr.port, data))
|
||||||
|
|
||||||
def connectionMade(self):
|
def connectionMade(self):
|
Loading…
Reference in New Issue