From a9132c1da787fadb45c7613cd2a0fd1ed5b3116b Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com> Date: Fri, 30 Sep 2016 07:07:45 -0400 Subject: [PATCH] Fixed a python3 TypeError bug. Issue: #31 --- CHANGELOG.rst | 1 + src/apex/aprs/igate.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index bf94b86..35253f0 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,6 +9,7 @@ Changelog * Output now displays IGATE as the source/destination instead of APRS-IS. * Made IGATE a reserved name in the configuration, it cannot be used for a TNC name. * Removed a catch-everything block, the result is exceptions will now cause the application to exit. +* Fixed several bugs specific to python3, should now work under python3. 0.0.4 ----- diff --git a/src/apex/aprs/igate.py b/src/apex/aprs/igate.py index b826884..bb9b94c 100644 --- a/src/apex/aprs/igate.py +++ b/src/apex/aprs/igate.py @@ -100,7 +100,7 @@ class IGate(object): frame = aprs_util.encode_frame(frame_decoded) if 'TCP' in protocol: - self.aprsis_sock.sendall(frame) + self.aprsis_sock.sendall(frame.encode(encoding='UTF-8')) return True elif 'HTTP' in protocol: content = '\n'.join([self._auth, frame]) -- GitLab