use spaces for indention as mandated by PEP-8

This commit is contained in:
Steffen Vogel 2019-04-26 00:37:34 +02:00
parent 3ccb164f20
commit d022243f6c
10 changed files with 2274 additions and 2272 deletions

View file

@ -21,8 +21,8 @@ parser.add_argument('--log', type=str)
parser.add_argument('--host', type=str, required=True) parser.add_argument('--host', type=str, required=True)
parser.add_argument('--port', type=int, required=True) parser.add_argument('--port', type=int, required=True)
parser.add_argument('--service.backend_id', metavar="ID", type=int, required=True) parser.add_argument('--service.backend_id', metavar="ID", type=int, required=True)
parser.add_argument('config', type=str)
parser.add_argument('-j', type=str, metavar="JID", required=True) parser.add_argument('-j', type=str, metavar="JID", required=True)
parser.add_argument('config', type=str)
args, unknown = parser.parse_known_args() args, unknown = parser.parse_known_args()
@ -75,14 +75,16 @@ def main():
try: try:
asyncore.loop(timeout=1.0, count=10, use_poll = True) asyncore.loop(timeout=1.0, count=10, use_poll = True)
try: try:
callback = YowStack._YowStack__detachedQueue.get(False) #doesn't block callback = YowStack._YowStack__detachedQueue.get(False) # doesn't block
callback() callback()
except queue.Empty: except queue.Empty:
pass pass
else: else:
break break
if closed: if closed:
break break
while True: while True:
try: try:
callback = threadutils.eventQueue.get_nowait() callback = threadutils.eventQueue.get_nowait()