From 9414943559b61b6fce0ffd99340b78775aa44ab0 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Mon, 20 Oct 2025 11:52:46 +0200 Subject: [PATCH] allow to skip entries --- dap/utils/bsreadext.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dap/utils/bsreadext.py b/dap/utils/bsreadext.py index d1777ca..8c1baa1 100644 --- a/dap/utils/bsreadext.py +++ b/dap/utils/bsreadext.py @@ -10,9 +10,12 @@ def make_bsread_sender(host="*", port=None): return sender -def pack_bsread_data(orig, prefix): +def pack_bsread_data(orig, prefix, skip=None): + skip = skip or [] data = {} for k, v in orig.items(): + if k in skip: + continue if isinstance(v, bool): v = int(v) elif isinstance(v, list) and not v: