From 1a3e532b291261dd526aeaa1650d4e161b1f178c Mon Sep 17 00:00:00 2001 From: Bandie Date: Wed, 4 Apr 2018 16:51:26 +0200 Subject: [PATCH] Removing trailing spaces No 4 --- dingd | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dingd b/dingd index 33b1cca..973b824 100755 --- a/dingd +++ b/dingd @@ -67,7 +67,7 @@ def main(): del timeout tmppw_on=pw_on print(getTimestamp(), "Locked.") - + try: buf = connstream.recv(1024) if not buf: break @@ -78,9 +78,7 @@ def main(): except ConnectionResetError: print(getTimestamp(), "Connection reset.") serve() - - if(tmppw_on): retval = execFromConfig(buf, True) if(retval == 5): @@ -92,7 +90,7 @@ def main(): connstream.send(bytes(pwokstr, "utf-8")) timeout=time.time() + pwtimeout tmppw_on = False - + else: print(getTimestamp(), " ", fromaddr[0], ": ", buf, sep="") retval = execFromConfig(buf)