From 79035ff36cfd840fdf3d27c7aaec74f35e14b4c2 Mon Sep 17 00:00:00 2001 From: Jeremy Fee <jmfee@usgs.gov> Date: Tue, 17 Dec 2019 14:21:43 -0700 Subject: [PATCH] Update how encode is called for python2 compat --- geomagio/edge/RawInputClient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geomagio/edge/RawInputClient.py b/geomagio/edge/RawInputClient.py index f2a2f3bcf..0afe29c58 100644 --- a/geomagio/edge/RawInputClient.py +++ b/geomagio/edge/RawInputClient.py @@ -133,10 +133,10 @@ class RawInputClient(): the correct length. We only expect observatory to ever be of an incorrect length. """ - return str.encode(network + + return str(network + observatory.ljust(5) + channel + - location) + location).encode() def forceout(self): """ force edge to recognize data -- GitLab