2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Correct fix for the python3 compatibility

This commit is contained in:
Jarrod Johnson 2022-04-13 17:32:43 -04:00
parent c533c973b1
commit 5285691344

View File

@ -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()
connection.close()