From ed050b37e124001396ebfada29fadab54df339ed Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 10 Apr 2020 11:57:59 -0400 Subject: [PATCH] Fix httpapi with python3 async is now particularly special, rename variable to fix it --- confluent_server/confluent/httpapi.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/confluent_server/confluent/httpapi.py b/confluent_server/confluent/httpapi.py index 76313005..669411f9 100644 --- a/confluent_server/confluent/httpapi.py +++ b/confluent_server/confluent/httpapi.py @@ -511,10 +511,10 @@ def resourcehandler_backend(env, start_response): width = querydict.get('width', 80) height = querydict.get('height', 24) datacallback = None - async = None + asynchdl = None if 'HTTP_CONFLUENTASYNCID' in env: - async = confluent.asynchttp.get_async(env, querydict) - termrel = async.set_term_relation(env) + asynchdl = confluent.asynchttp.get_async(env, querydict) + termrel = asynchdl.set_term_relation(env) datacallback = termrel.got_data try: if shellsession: @@ -537,8 +537,8 @@ def resourcehandler_backend(env, start_response): start_response("500 Internal Server Error", headers) return sessid = _assign_consessionid(consession) - if async: - async.add_console_session(sessid) + if asynchdl: + asynchdl.add_console_session(sessid) start_response('200 OK', headers) yield '{"session":"%s","data":""}' % sessid return