From 7f36745b697621851ce0ed2efc5675b31b4aed86 Mon Sep 17 00:00:00 2001 From: Dobroslaw Zybort Date: Tue, 24 Sep 2019 09:26:51 +0200 Subject: [PATCH] Fix python 3 compatibility in statsd Change-Id: I7e0ba155e209960edee7df3b4c7d248896cf3d5b --- monasca_agent/statsd/udp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monasca_agent/statsd/udp.py b/monasca_agent/statsd/udp.py index 0c54a13c..d105ddb3 100644 --- a/monasca_agent/statsd/udp.py +++ b/monasca_agent/statsd/udp.py @@ -157,7 +157,7 @@ class Server(object): return dimensions def submit_packets(self, packets): - for packet in packets.split("\n"): + for packet in packets.split(b"\n"): if not packet.strip(): continue