From 9a93baed0e45fae4ef21ac7ce86514945bcde711 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 23 May 2016 15:36:30 -0400 Subject: [PATCH] Fix handling of unicode data in inventory It is possible for unicode data to appear in some data values. Use a unicode string to hold the value, in case of unicode data coming from server. --- confluent_client/bin/nodeinventory | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_client/bin/nodeinventory b/confluent_client/bin/nodeinventory index fbafe28d..8fc9caec 100644 --- a/confluent_client/bin/nodeinventory +++ b/confluent_client/bin/nodeinventory @@ -103,7 +103,7 @@ try: for datum in info: if info[datum] is None: continue - print('{0}: {1} {2}: {3}'.format(node, prefix, + print(u'{0}: {1} {2}: {3}'.format(node, prefix, pretty(datum), info[datum])) except KeyboardInterrupt: