Strip newlines from received lines and change file extension

This commit is contained in:
Mark Veidemanis 2017-11-20 20:04:03 +00:00
parent 92b9692304
commit a1051dfa68
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ class Base(Protocol):
self.transport.write(data)
def dataReceived(self, data):
data = data.rstrip()
log("Data received from %s:%s -- %s" % (self.addr.host, self.addr.port, data))
def connectionMade(self):