From 44929e7975a4f2c24f32cf3fed40c6043bfb3101 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 19 Jul 2019 15:36:43 -0400 Subject: [PATCH] Fix printing of unicode to pipe nodesensors would have a unicode error on pipe output. --- confluent_client/bin/nodesensors | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_client/bin/nodesensors b/confluent_client/bin/nodesensors index ccf8b917..6c13cc74 100755 --- a/confluent_client/bin/nodesensors +++ b/confluent_client/bin/nodesensors @@ -150,7 +150,7 @@ def sensorpass(showout=True, appendtime=False): showval += ' @' + time.strftime( '%Y-%m-%dT%H:%M:%S') print(u'{0}: {1}:{2}'.format( - node, sensedata['name'], showval)) + node, sensedata['name'], showval).encode('utf8')) sys.stdout.flush() return resultdata