From b172c6dbdeb460d480a0091a14002251ac6b0324 Mon Sep 17 00:00:00 2001 From: Hemna Date: Mon, 16 Sep 2024 11:36:49 -0400 Subject: [PATCH] Fixed pep8 with packet_list Small python issue with a pop8 violation. --- aprsd/packets/packet_list.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aprsd/packets/packet_list.py b/aprsd/packets/packet_list.py index c97b429..067a7d5 100644 --- a/aprsd/packets/packet_list.py +++ b/aprsd/packets/packet_list.py @@ -37,7 +37,7 @@ class PacketList(objectstore.ObjectStoreMixin): self._total_rx += 1 self._add(packet) ptype = packet.__class__.__name__ - if not ptype in self.data["types"]: + if ptype not in self.data["types"]: self.data["types"][ptype] = {"tx": 0, "rx": 0} self.data["types"][ptype]["rx"] += 1 @@ -47,7 +47,7 @@ class PacketList(objectstore.ObjectStoreMixin): self._total_tx += 1 self._add(packet) ptype = packet.__class__.__name__ - if not ptype in self.data["types"]: + if ptype not in self.data["types"]: self.data["types"][ptype] = {"tx": 0, "rx": 0} self.data["types"][ptype]["tx"] += 1