From 032cf5c116649c4260272c350a7c8f117767a0f8 Mon Sep 17 00:00:00 2001 From: TheSpooler Date: Sat, 15 Aug 2015 09:40:40 -0400 Subject: [PATCH] Support for Python 3 --- bin/wsshd | 2 +- wssh/__init__.py | 2 +- wssh/server.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/wsshd b/bin/wsshd index 97fbd09..81d4498 100755 --- a/bin/wsshd +++ b/bin/wsshd @@ -94,7 +94,7 @@ if __name__ == '__main__': agent = 'wsshd/{0}'.format(wssh.__version__) - print '{0} running on {1}:{2}'.format(agent, args.host, args.port) + print('{0} running on {1}:{2}'.format(agent, args.host, args.port)) app.debug = True http_server = WSGIServer((args.host, args.port), app, diff --git a/wssh/__init__.py b/wssh/__init__.py index 5c01378..bea3558 100644 --- a/wssh/__init__.py +++ b/wssh/__init__.py @@ -1,3 +1,3 @@ -from server import WSSHBridge +from wssh.server import WSSHBridge __version__ = '0.1.0' diff --git a/wssh/server.py b/wssh/server.py index 17a4965..999e188 100644 --- a/wssh/server.py +++ b/wssh/server.py @@ -24,7 +24,7 @@ except ImportError: import json -from StringIO import StringIO +from io import StringIO class WSSHBridge(object):