Reindented all source code

This commit is contained in:
Manuel Cortez 2022-01-14 11:47:24 -06:00
parent 17b9161813
commit 1aa7491624
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790
11 changed files with 436 additions and 437 deletions

View File

@ -11,7 +11,7 @@ class client(client.client):
""" This functions receives data from an enet server in the following protocol:
dict(action="some_command", **kwargs)
This function will send all data to whatever listener in the pubsub stack by using the topic "response".
"""
"""
f = data.get("action")
if f == None:
print("Error: Invalid data in protocol. %r" % (data))
@ -23,4 +23,3 @@ class client(client.client):
def disconnected(self, peer):
pub.sendMessage("disconnected")

View File

@ -17,12 +17,12 @@ def get_recording(filename):
class RepeatingTimer(threading.Thread):
"""Call a function after a specified number of seconds, it will then repeat again after the specified number of seconds
Note: If the function provided takes time to execute, this time is NOT taken from the next wait period
Note: If the function provided takes time to execute, this time is NOT taken from the next wait period
t = RepeatingTimer(30.0, f, args=[], kwargs={})
t.start()
t.cancel() # stop the timer's actions
"""
t = RepeatingTimer(30.0, f, args=[], kwargs={})
t.start()
t.cancel() # stop the timer's actions
"""
def __init__(self, interval, function, daemon=True, *args, **kwargs):
threading.Thread.__init__(self)