Removing trailing spaces No 4
This commit is contained in:
parent
36dd610965
commit
1a3e532b29
6
dingd
6
dingd
@ -67,7 +67,7 @@ def main():
|
|||||||
del timeout
|
del timeout
|
||||||
tmppw_on=pw_on
|
tmppw_on=pw_on
|
||||||
print(getTimestamp(), "Locked.")
|
print(getTimestamp(), "Locked.")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
buf = connstream.recv(1024)
|
buf = connstream.recv(1024)
|
||||||
if not buf: break
|
if not buf: break
|
||||||
@ -78,9 +78,7 @@ def main():
|
|||||||
except ConnectionResetError:
|
except ConnectionResetError:
|
||||||
print(getTimestamp(), "Connection reset.")
|
print(getTimestamp(), "Connection reset.")
|
||||||
serve()
|
serve()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(tmppw_on):
|
if(tmppw_on):
|
||||||
retval = execFromConfig(buf, True)
|
retval = execFromConfig(buf, True)
|
||||||
if(retval == 5):
|
if(retval == 5):
|
||||||
@ -92,7 +90,7 @@ def main():
|
|||||||
connstream.send(bytes(pwokstr, "utf-8"))
|
connstream.send(bytes(pwokstr, "utf-8"))
|
||||||
timeout=time.time() + pwtimeout
|
timeout=time.time() + pwtimeout
|
||||||
tmppw_on = False
|
tmppw_on = False
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print(getTimestamp(), " ", fromaddr[0], ": ", buf, sep="")
|
print(getTimestamp(), " ", fromaddr[0], ": ", buf, sep="")
|
||||||
retval = execFromConfig(buf)
|
retval = execFromConfig(buf)
|
||||||
|
Loading…
Reference in New Issue
Block a user