Python3 wants strings given to stderr.write

This commit is contained in:
Tony Garnock-Jones 2019-05-16 14:28:14 +01:00
parent 3d4b0d547c
commit fdf8a07a5d
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ elif len(sys.argv) == 3:
elif len(sys.argv) == 1:
conn = S.WebsocketConnection('ws://localhost:8000/', 'broker')
else:
sys.stderr.write(b'Usage: chat.py [ HOST PORT SCOPE | WEBSOCKETURL SCOPE ]\n')
sys.stderr.write('Usage: chat.py [ HOST PORT SCOPE | WEBSOCKETURL SCOPE ]\n')
sys.exit(1)
## Courtesy of http://listofrandomnames.com/ :-)