mirror of
https://github.com/craigerl/aprsd.git
synced 2024-11-17 13:51:54 -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:
parent
b552f9611f
commit
51832ea75e
@ -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
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user