diff options
author | liris <liris.pp@gmail.com> | 2013-02-19 11:35:29 +0900 |
---|---|---|
committer | liris <liris.pp@gmail.com> | 2013-02-19 11:35:29 +0900 |
commit | ea03f7026b5f9ef87df432f4bcf616ea93c69d67 (patch) | |
tree | 7685d0746fb47778103b08e1777f008ba93107c5 /bin | |
parent | ed7041ae8c01603b430d973ff3964c098a462e8c (diff) | |
download | websocket-client-ea03f7026b5f9ef87df432f4bcf616ea93c69d67.tar.gz |
prepare for py3
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/wsdump.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/wsdump.py b/bin/wsdump.py index 02b40af..85c455d 100755 --- a/bin/wsdump.py +++ b/bin/wsdump.py @@ -44,7 +44,6 @@ class InteractiveConsole(code.InteractiveConsole): sys.stdout.write("\n> ") sys.stdout.flush() - def raw_input(self, prompt): line = raw_input(prompt) if ENCODING and ENCODING != "utf-8" and not isinstance(line, unicode): @@ -61,8 +60,8 @@ def main(): ws = websocket.create_connection(args.url) if args.verbose > 1: websocket.enableTrace(True) - print "Press Ctrl+C to quit" - + print("Press Ctrl+C to quit") + def recv(): frame = ws.recv_frame() if not frame: @@ -108,4 +107,4 @@ if __name__ == "__main__": try: main() except Exception, e: - print e + print(e) |