From 99a0f877f4b97dcc91cbf9552f72fe9e29ac9ba1 Mon Sep 17 00:00:00 2001 From: Hemna Date: Thu, 28 Sep 2023 12:34:01 -0400 Subject: [PATCH] pep8 fixes --- aprsd/packets/core.py | 1 + aprsd/packets/packet_list.py | 2 +- aprsd/threads/rx.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/aprsd/packets/core.py b/aprsd/packets/core.py index a95f658..a75820b 100644 --- a/aprsd/packets/core.py +++ b/aprsd/packets/core.py @@ -33,6 +33,7 @@ def _init_timestamp(): """Build a unix style timestamp integer""" return int(round(time.time())) + def _init_msgNo(): # noqa: N802 """For some reason __post__init doesn't get called. diff --git a/aprsd/packets/packet_list.py b/aprsd/packets/packet_list.py index e44e02e..c07c72c 100644 --- a/aprsd/packets/packet_list.py +++ b/aprsd/packets/packet_list.py @@ -60,7 +60,7 @@ class PacketList(MutableMapping): return self.get(key) def __getitem__(self, key): - #self.d.move_to_end(key) + # self.d.move_to_end(key) return self.d[key] def __setitem__(self, key, value): diff --git a/aprsd/threads/rx.py b/aprsd/threads/rx.py index 983bb07..c718f3b 100644 --- a/aprsd/threads/rx.py +++ b/aprsd/threads/rx.py @@ -85,7 +85,7 @@ class APRSDPluginRXThread(APRSDRXThread): pkt_list.rx(packet) self.packet_queue.put(packet) elif packet.timestamp - found.timestamp < 60: - LOG.warning(f"Packet {packet.from_call}:{packet.msgNo} already tracked, dropping.") + LOG.warning(f"Packet {packet.from_call}:{packet.msgNo} already tracked, dropping.") else: LOG.warning(f"Packet {packet.from_call}:{packet.msgNo} already tracked but older than 60 seconds. processing.") pkt_list.rx(packet)