From 46c621175cb0ac5433d16ce254e2128a0ada09ba Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Wed, 10 Aug 2011 17:54:15 -0500 Subject: Fix websockify with python2.4 https://github.com/kanaka/noVNC/issues/72 Pull from websockify 2e00f9643. --- utils/websockify | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/websockify b/utils/websockify index e82e364..59b6e0d 100755 --- a/utils/websockify +++ b/utils/websockify @@ -255,7 +255,7 @@ if __name__ == '__main__': # Parse host:port and convert ports to numbers if args[0].count(':') > 0: - opts.listen_host, sep, opts.listen_port = args[0].rpartition(':') + opts.listen_host, opts.listen_port = args[0].rsplit(':', 1) else: opts.listen_host, opts.listen_port = '', args[0] @@ -267,7 +267,7 @@ if __name__ == '__main__': opts.target_port = None else: if args[1].count(':') > 0: - opts.target_host, sep, opts.target_port = args[1].rpartition(':') + opts.target_host, opts.target_port = args[1].rsplit(':', 1) else: parser.error("Error parsing target") try: opts.target_port = int(opts.target_port) -- cgit v1.2.1