1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-12-23 18:15:57 -05:00

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 b552f9611f
commit 51832ea75e
2 changed files with 1 additions and 2 deletions

View File

@ -30,6 +30,7 @@ CONFIG = None
LOG = logging.getLogger('ARPSSERVER')
# Setup the logging faciility
# to disable logging to stdout, but still log to file
# use the --quiet option on the cmdln

View File

@ -134,12 +134,10 @@ def setup_connection():
msg = ("user {} pass {} vers aprsd {}\n".format(user, password, aprsd.__version__))
sock.send(msg.encode())
def signal_handler(signal, frame):
LOG.info("Ctrl+C, exiting.")
# sys.exit(0) # thread ignores this
os._exit(0)
# end signal_handler
def parse_email(msgid, data, server):