mirror of
https://github.com/craigerl/aprsd.git
synced 2024-11-15 21:01:47 -05:00
Fixed pep8 with packet_list
Small python issue with a pop8 violation.
This commit is contained in:
parent
9d3f45ac30
commit
b172c6dbde
@ -37,7 +37,7 @@ class PacketList(objectstore.ObjectStoreMixin):
|
|||||||
self._total_rx += 1
|
self._total_rx += 1
|
||||||
self._add(packet)
|
self._add(packet)
|
||||||
ptype = packet.__class__.__name__
|
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": 0, "rx": 0}
|
||||||
self.data["types"][ptype]["rx"] += 1
|
self.data["types"][ptype]["rx"] += 1
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ class PacketList(objectstore.ObjectStoreMixin):
|
|||||||
self._total_tx += 1
|
self._total_tx += 1
|
||||||
self._add(packet)
|
self._add(packet)
|
||||||
ptype = packet.__class__.__name__
|
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": 0, "rx": 0}
|
||||||
self.data["types"][ptype]["tx"] += 1
|
self.data["types"][ptype]["tx"] += 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user