Flush after print

This commit is contained in:
Tony Garnock-Jones 2019-06-13 12:59:05 +01:00
parent c73fb462d2
commit 0ec0d68b62
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,11 @@ else:
'Usage: chat.py [ HOST PORT SCOPE | WEBSOCKETURL SCOPE | UNIXSOCKETPATH SCOPE ]\n')
sys.exit(1)
_print = print
def print(*items):
_print(*items)
sys.stdout.flush()
## Courtesy of http://listofrandomnames.com/ :-)
names = ['Daria', 'Kendra', 'Danny', 'Rufus', 'Diana', 'Arnetta', 'Dominick', 'Melonie', 'Regan',
'Glenda', 'Janet', 'Luci', 'Ronnie', 'Vita', 'Amie', 'Stefani', 'Catherine', 'Grady',