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:
parent
c533c973b1
commit
5285691344
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user