From a1051dfa687d3d8f6287a4903cd66863c08accf5 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 20 Nov 2017 20:04:03 +0000 Subject: [PATCH] Strip newlines from received lines and change file extension --- threshold.py => threshold | 1 + 1 file changed, 1 insertion(+) rename threshold.py => threshold (98%) diff --git a/threshold.py b/threshold similarity index 98% rename from threshold.py rename to threshold index 3951b1d..ec43bb3 100755 --- a/threshold.py +++ b/threshold @@ -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):