From df2fbddbe59b21f41eeddc84d75d852a477454b0 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Wed, 15 Jun 2011 13:20:20 -0500 Subject: SSLServer: Fix syntax error for python 2 Signed-off-by: Sol Jerome --- src/lib/SSLServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/SSLServer.py b/src/lib/SSLServer.py index bb0f61198..fa7d4e145 100644 --- a/src/lib/SSLServer.py +++ b/src/lib/SSLServer.py @@ -201,7 +201,7 @@ class XMLRPCRequestHandler (SimpleXMLRPCServer.SimpleXMLRPCRequestHandler): try: username, password = auth_content.split(":") except TypeError: - username, pw = auth_content.split(b":") + username, pw = auth_content.split(bytes(":", encoding='utf-8')) password = pw.decode('utf-8') except ValueError: username = auth_content -- cgit v1.2.3-1-g7c22