Use byte literals instead of encode (#33633)

This commit is contained in:
Franck Nijhof authored and GitHub committed 2020-04-04 20:02:50 +02:00
1 parent 39a01fcdc6
commit d85222ad80
4 files changed
+7 -7

No files matched your search

@@ -104,7 +104,7 @@ class GraphiteFeeder(threading.Thread):
sock.settimeout(10)
sock.connect((self._host, self._port))
sock.sendall(data.encode("ascii"))
sock.send("\n".encode("ascii"))
sock.send(b"\n")
sock.close()
def _report_attributes(self, entity_id, new_state):