From 1514410e84afd670fae05037b20eddba40070c6f Mon Sep 17 00:00:00 2001 From: Teque5 Date: Tue, 12 Nov 2024 13:26:39 -0800 Subject: [PATCH] remove unnecessary inline comprehension --- sigmf/__init__.py | 2 +- sigmf/sigmffile.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sigmf/__init__.py b/sigmf/__init__.py index e5138a8..982e14a 100644 --- a/sigmf/__init__.py +++ b/sigmf/__init__.py @@ -5,7 +5,7 @@ # SPDX-License-Identifier: LGPL-3.0-or-later # version of this python module -__version__ = "1.2.3" +__version__ = "1.2.4" # matching version of the SigMF specification __specification__ = "1.2.0" diff --git a/sigmf/sigmffile.py b/sigmf/sigmffile.py index a6a9c37..3c616e9 100644 --- a/sigmf/sigmffile.py +++ b/sigmf/sigmffile.py @@ -340,7 +340,7 @@ def get_captures(self): """ Returns a list of dictionaries representing all captures. """ - return [x for x in self._metadata.get(self.CAPTURE_KEY, [])] + return self._metadata.get(self.CAPTURE_KEY, []) def get_capture_info(self, index): """