run the formatter once more

This commit is contained in:
Jakob Ketterl 2019-09-23 03:15:24 +02:00
parent 72f92a1c2b
commit ae87185ad0
5 changed files with 6 additions and 11 deletions

View File

@ -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])),
}

View File

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

View File

@ -84,7 +84,6 @@ class YsfMetaEnricher(object):
class MetaParser(object):
def __init__(self, handler):
self.handler = handler
self.enrichers = {"DMR": DmrMetaEnricher(), "YSF": YsfMetaEnricher(self)}

View File

@ -1,5 +1,6 @@
import threading
class Metric(object):
def getValue(self):
return 0

View File

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