From 6911ca407ee3ba948ccf9423b21e4f717026532a Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Wed, 25 Sep 2019 00:47:34 +0200 Subject: [PATCH] code format --- owrx/locator.py | 2 +- owrx/pskreporter.py | 9 ++------- owrx/wsjt.py | 4 +++- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/owrx/locator.py b/owrx/locator.py index 3e6f9cc..ec80b03 100644 --- a/owrx/locator.py +++ b/owrx/locator.py @@ -21,4 +21,4 @@ class Locator(object): res += chr(97 + int(lon * 12)) res += chr(97 + int(lat * 24)) - return res \ No newline at end of file + return res diff --git a/owrx/pskreporter.py b/owrx/pskreporter.py index 8b2edb9..958d2f1 100644 --- a/owrx/pskreporter.py +++ b/owrx/pskreporter.py @@ -16,6 +16,7 @@ class PskReporterDummy(object): used in place of the PskReporter when reporting is disabled. does nothing. """ + def spot(self, spot): pass @@ -97,13 +98,7 @@ class Uploader(object): sInfo = self.getSenderInformation(chunk) length = 16 + len(rHeader) + len(sHeader) + len(rInfo) + len(sInfo) header = self.getHeader(length) - packets.append( - header - + rHeader - + sHeader - + rInfo - + sInfo - ) + packets.append(header + rHeader + sHeader + rInfo + sInfo) return packets diff --git a/owrx/wsjt.py b/owrx/wsjt.py index e785e4e..6539f84 100644 --- a/owrx/wsjt.py +++ b/owrx/wsjt.py @@ -322,7 +322,9 @@ class WsjtParser(object): class Decoder(object): def parse_timestamp(self, instring, dateformat): ts = datetime.strptime(instring, dateformat) - return int(datetime.combine(datetime.utcnow().date(), ts.time()).replace(tzinfo=timezone.utc).timestamp() * 1000) + return int( + datetime.combine(datetime.utcnow().date(), ts.time()).replace(tzinfo=timezone.utc).timestamp() * 1000 + ) class Jt9Decoder(Decoder):