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
|
base = decodeBase91(input[:-1]) * 91 if len(input) > 1 else 0
|
||||||
return base + (ord(input[-1]) - 33)
|
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):
|
class Ax25Parser(object):
|
||||||
@ -578,5 +573,5 @@ class MicEParser(object):
|
|||||||
"course": course,
|
"course": course,
|
||||||
"device": device,
|
"device": device,
|
||||||
"type": "Mic-E",
|
"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)
|
super().__init__(request, client_address, server)
|
||||||
|
|
||||||
def log_message(self, format, *args):
|
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):
|
def do_GET(self):
|
||||||
self.router.route(self)
|
self.router.route(self)
|
||||||
|
@ -84,7 +84,6 @@ class YsfMetaEnricher(object):
|
|||||||
|
|
||||||
|
|
||||||
class MetaParser(object):
|
class MetaParser(object):
|
||||||
|
|
||||||
def __init__(self, handler):
|
def __init__(self, handler):
|
||||||
self.handler = handler
|
self.handler = handler
|
||||||
self.enrichers = {"DMR": DmrMetaEnricher(), "YSF": YsfMetaEnricher(self)}
|
self.enrichers = {"DMR": DmrMetaEnricher(), "YSF": YsfMetaEnricher(self)}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import threading
|
import threading
|
||||||
|
|
||||||
|
|
||||||
class Metric(object):
|
class Metric(object):
|
||||||
def getValue(self):
|
def getValue(self):
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user