From 9bfb4f1e110ac2ac65df009cd00dc59e60c15337 Mon Sep 17 00:00:00 2001 From: qjcg Date: Fri, 12 Sep 2014 11:36:28 -0400 Subject: [PATCH] Fix webconfig URL generation for python3 Closes #1677. Signed-off-by: David Adam --- share/tools/web_config/webconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index 89d180b7d..47a9fb4e1 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -861,7 +861,7 @@ where = os.path.dirname(sys.argv[0]) os.chdir(where) # Generate a 16-byte random key as a hexadecimal string -authkey = binascii.b2a_hex(os.urandom(16)) +authkey = binascii.b2a_hex(os.urandom(16)).decode('ascii') # Try to find a suitable port PORT = 8000