From 2234508370e1abfdbbef05f5f4f7f259454c1c0a Mon Sep 17 00:00:00 2001 From: gsd Date: Sat, 14 Feb 2026 23:18:32 +0300 Subject: [PATCH] a --- pb.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pb.py b/pb.py index 5afce44..c40e490 100644 --- a/pb.py +++ b/pb.py @@ -386,6 +386,7 @@ def isInt(any): except: return False +#AI SLOOP def _skip_group(buf, i, group_field, _depth=0, _max_depth=_MAX_NESTING_DEPTH): """Пропускает все поля группы, начиная с позиции i, и возвращает новую позицию после end group.""" if _depth > _max_depth: @@ -496,13 +497,14 @@ def decode(buf, schema=None, _depth=0, _max_depth=_MAX_NESTING_DEPTH): v = chunk else: v = chunk - elif wt == 3: + elif wt == 3:#AI SLOOP # Пропускаем всю группу, данные не сохраняем - i = _skip_group(b, i, field, _depth, _max_depth) + #i = _skip_group(b, i, field, _depth, _max_depth) continue # ничего не добавляем в out - elif wt == 4: + elif wt == 4:#AI SLOOP # Если мы здесь, значит end group встречен не вовремя — ошибка - raise ValueError("unexpected end group") + #raise ValueError("unexpected end group") + continue elif wt == 5: v, i = _read_fixed32(b, i) if spec: