From 9798f30ef836069b74e9a6de06992f57291aa918 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 22 Aug 2017 16:54:25 -0400 Subject: [PATCH] Remove codecs getwriter unicode from nodesensors In nodesensors, things are made into binary strings explicitly, which causes the codecs.getwriter to choke --- confluent_client/bin/nodesensors | 3 --- 1 file changed, 3 deletions(-) diff --git a/confluent_client/bin/nodesensors b/confluent_client/bin/nodesensors index 85dc0053..60e69cac 100755 --- a/confluent_client/bin/nodesensors +++ b/confluent_client/bin/nodesensors @@ -15,7 +15,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import codecs import csv import datetime import optparse @@ -35,8 +34,6 @@ if path.startswith('/opt'): import confluent.client as client -sys.stdout = codecs.getwriter('utf8')(sys.stdout) - sensorcollections = { 'all': 'sensors/hardware/all/all', 'temperature': 'sensors/hardware/temperature/all',