From 06a63f541e20b3d6942e399fda865b487f05a343 Mon Sep 17 00:00:00 2001 From: Hemna Date: Fri, 4 Dec 2020 08:56:26 -0500 Subject: [PATCH] Fixed all pep8 errors and some py3 errors This introduced the six lib which can translate common py2 vs py3 incompatibilities. https://six.readthedocs.io/ --- aprsd/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aprsd/main.py b/aprsd/main.py index 13c5187..c5f7846 100644 --- a/aprsd/main.py +++ b/aprsd/main.py @@ -526,7 +526,7 @@ def main(args=args): password = CONFIG['aprs']['password'] LOG.info("LOGIN to APRSD with user '%s'" % user) # tn.write("user %s pass %s vers aprsd 0.99\n" % (user, password)) - sock.send("user %s pass %s vers aprsd 0.99\n" % (user, password)) + sock.send("user %s pass %s vers https://github.com/craigerl/aprsd 2.00\n" % (user, password)) time.sleep(2) @@ -538,6 +538,9 @@ def main(args=args): while True: line = "" try: + # for char in tn.read_until("\n", 100): + # line = line + char + # line = line.replace('\n', '') line = sock_file.readline().strip() LOG.info(line) searchstring = '::%s' % user