From 5285691344006e65f8d51f30a84e32d6673097fa Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 13 Apr 2022 17:32:43 -0400 Subject: [PATCH] Correct fix for the python3 compatibility --- confluent_client/confluent/termhandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_client/confluent/termhandler.py b/confluent_client/confluent/termhandler.py index 32304aec..0b3b0d16 100644 --- a/confluent_client/confluent/termhandler.py +++ b/confluent_client/confluent/termhandler.py @@ -59,10 +59,10 @@ class TermHandler(object): winid = os.environ['WINDOWID'] if not isinstance(winid, bytes): winid = winid.encode('utf8') - connection.sendall(os.environ['WINDOWID']) + connection.sendall(winid) connection.close() except BaseException: pass finally: if connection is not None: - connection.close() \ No newline at end of file + connection.close()