run the formatter once more
This commit is contained in:
parent
72f92a1c2b
commit
ae87185ad0
11
owrx/aprs.py
11
owrx/aprs.py
@ -37,14 +37,9 @@ def decodeBase91(input):
|
||||
base = decodeBase91(input[:-1]) * 91 if len(input) > 1 else 0
|
||||
return base + (ord(input[-1]) - 33)
|
||||
|
||||
def getSymbolData(symbol, table):
|
||||
return {
|
||||
"symbol": symbol,
|
||||
"table": table,
|
||||
"index": ord(symbol) - 33,
|
||||
"tableindex": ord(table) - 33,
|
||||
}
|
||||
|
||||
def getSymbolData(symbol, table):
|
||||
return {"symbol": symbol, "table": table, "index": ord(symbol) - 33, "tableindex": ord(table) - 33}
|
||||
|
||||
|
||||
class Ax25Parser(object):
|
||||
@ -578,5 +573,5 @@ class MicEParser(object):
|
||||
"course": course,
|
||||
"device": device,
|
||||
"type": "Mic-E",
|
||||
"symbol": getSymbolData(chr(information[7]), chr(information[8]))
|
||||
"symbol": getSymbolData(chr(information[7]), chr(information[8])),
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ class RequestHandler(BaseHTTPRequestHandler):
|
||||
super().__init__(request, client_address, server)
|
||||
|
||||
def log_message(self, format, *args):
|
||||
logger.debug("%s - - [%s] %s", self.address_string(), self.log_date_time_string(), format%args)
|
||||
logger.debug("%s - - [%s] %s", self.address_string(), self.log_date_time_string(), format % args)
|
||||
|
||||
def do_GET(self):
|
||||
self.router.route(self)
|
||||
|
@ -84,7 +84,6 @@ class YsfMetaEnricher(object):
|
||||
|
||||
|
||||
class MetaParser(object):
|
||||
|
||||
def __init__(self, handler):
|
||||
self.handler = handler
|
||||
self.enrichers = {"DMR": DmrMetaEnricher(), "YSF": YsfMetaEnricher(self)}
|
||||
|
@ -1,5 +1,6 @@
|
||||
import threading
|
||||
|
||||
|
||||
class Metric(object):
|
||||
def getValue(self):
|
||||
return 0
|
||||
|
@ -197,7 +197,7 @@ class WsjtChopper(threading.Thread):
|
||||
pm = PropertyManager.getSharedInstance()
|
||||
# mode-specific setting?
|
||||
if "wsjt_decoding_depths" in pm and mode in pm["wsjt_decoding_depths"]:
|
||||
return pm["wsjt_decoding_depths"][mode]
|
||||
return pm["wsjt_decoding_depths"][mode]
|
||||
# return global default
|
||||
if "wsjt_decoding_depth" in pm:
|
||||
return pm["wsjt_decoding_depth"]
|
||||
|
Loading…
Reference in New Issue
Block a user