mirror of
https://github.com/craigerl/aprsd.git
synced 2025-08-06 07:12:32 -04: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')
|
LOG = logging.getLogger('ARPSSERVER')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Setup the logging faciility
|
# Setup the logging faciility
|
||||||
# to disable logging to stdout, but still log to file
|
# to disable logging to stdout, but still log to file
|
||||||
# use the --quiet option on the cmdln
|
# 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__))
|
msg = ("user {} pass {} vers aprsd {}\n".format(user, password, aprsd.__version__))
|
||||||
sock.send(msg.encode())
|
sock.send(msg.encode())
|
||||||
|
|
||||||
|
|
||||||
def signal_handler(signal, frame):
|
def signal_handler(signal, frame):
|
||||||
LOG.info("Ctrl+C, exiting.")
|
LOG.info("Ctrl+C, exiting.")
|
||||||
# sys.exit(0) # thread ignores this
|
# sys.exit(0) # thread ignores this
|
||||||
os._exit(0)
|
os._exit(0)
|
||||||
# end signal_handler
|
|
||||||
|
|
||||||
|
|
||||||
def parse_email(msgid, data, server):
|
def parse_email(msgid, data, server):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user