diff options
author | liris <liris.pp@gmail.com> | 2013-09-03 07:26:15 +0900 |
---|---|---|
committer | liris <liris.pp@gmail.com> | 2013-09-03 07:26:15 +0900 |
commit | 0e21dacec89dabb2e1bc6901504da5a1d44204f1 (patch) | |
tree | 9c5811e6716ca60d9a89bf5a1968b41fd8bd5d72 | |
parent | 63938c575055c110fc762261f265c63d69f3e297 (diff) | |
parent | b6f75eff78c3edc9d289ba51dceb8674692f327e (diff) | |
download | websocket-client-0e21dacec89dabb2e1bc6901504da5a1d44204f1.tar.gz |
Merge branch 'py3fixes' of https://github.com/zakdances/websocket-client into zakdances-py3fixes
-rw-r--r-- | README.rst | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -6,11 +6,11 @@ websocket-client module is WebSocket client for python. This provide the low le websocket-client supports only hybi-13. -How about Python 3 +How about Python 2 =========================== -py3( https://github.com/liris/websocket-client/tree/py3 ) branch is for python 3.3. Every test case is passed. -If you are using python3, please check it. +py2( https://github.com/liris/websocket-client ) branch is for python 2. Every test case is passed. +If you are using python2, please check it. License @@ -54,7 +54,7 @@ sockopt example: JavaScript websocket-like API example:: import websocket - import thread + import threading import time def on_message(ws, message): @@ -74,7 +74,7 @@ JavaScript websocket-like API example:: time.sleep(1) ws.close() print("thread terminating...") - thread.start_new_thread(run, ()) + threading.Thread(target=run, args=()).start() if __name__ == "__main__": |