Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- non_null = lambda x: (i for i in x if x isnt None)
- # Loop time!
- with till_loop_stop():
- with catch(KeyboardInterrupt):
- for item in non_null(get_items(from_socket)):
- counts['received'] += 1
- for modified in modify(item):
- send_to(to_socket, modified)
- counts['sent'] += 1
Advertisement
Add Comment
Please, Sign In to add comment