From 75927656be9badbd7fd8d5ef4fcc6b937139333a Mon Sep 17 00:00:00 2001 From: Marat Fayzullin Date: Fri, 2 Aug 2024 21:15:51 -0400 Subject: [PATCH] Fixed syntax a bit. --- owrx/aprs/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owrx/aprs/__init__.py b/owrx/aprs/__init__.py index de7719d2..7511de88 100644 --- a/owrx/aprs/__init__.py +++ b/owrx/aprs/__init__.py @@ -63,7 +63,7 @@ class Ax25Parser(PickleModule): "source": self.extractCallsign(ax25frame[7:14]), "path": [self.extractCallsign(c, True) for c in chunks(ax25frame[14:control_pid], 7)], "data": ax25frame[control_pid + 2 :], - "raw": "".join('{:02X}'.format(x) for x in ax25frame) + "raw": "".join("{:02X}".format(x) for x in ax25frame) } except (ValueError, IndexError): logger.exception("error parsing ax25 frame") @@ -529,7 +529,7 @@ class AprsParser(PickleModule): out += bytes([buf]) # For now, just print data in hex - result["message"] = "".join('{:02X}'.format(x) for x in out) + result["message"] = "".join("{:02X}".format(x) for x in out) return result