From 7a63ca8759e99d4d2b523b68dd0f4126e36bc046 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 31 Jan 2020 08:53:42 -0500 Subject: [PATCH] Fix python3 problem with confetty Under python3, there is no unicode. --- confluent_client/bin/confetty | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/confluent_client/bin/confetty b/confluent_client/bin/confetty index e4e30e6d..043881a4 100755 --- a/confluent_client/bin/confetty +++ b/confluent_client/bin/confetty @@ -76,6 +76,11 @@ import confluent.termhandler as termhandler import confluent.tlvdata as tlvdata import confluent.client as client +try: + unicode +except NameError: + unicode = str + conserversequence = '\x05c' # ctrl-e, c clearpowermessage = False