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/
This commit is contained in:
Hemna 2020-12-04 08:56:26 -05:00
parent ecd0e8f95e
commit 06a63f541e
1 changed files with 4 additions and 1 deletions

View File

@ -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