From 40d51d9aaf5c796bf442564e2d6ad6a00df14b52 Mon Sep 17 00:00:00 2001 From: Maximilien Rigaut Date: Tue, 31 May 2022 04:30:28 +0200 Subject: [PATCH] Corrected a mistake, not fond of keeping garbage tokens tbh, will monitor closely --- src/bootstraparse/modules/context_mngr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bootstraparse/modules/context_mngr.py b/src/bootstraparse/modules/context_mngr.py index 6961f67..d661b70 100644 --- a/src/bootstraparse/modules/context_mngr.py +++ b/src/bootstraparse/modules/context_mngr.py @@ -346,7 +346,8 @@ class ContextManager: raise error for i in range(start, end): if self.pile[i]: - container.add(self.pile[i].to_container()) + # container.add(self.pile[i].to_container()) # This line transform the self modifiying containers # MONITOR + container.add(self.pile[i]) # Could also ignore the first and last element, or ignore the self modifying tokens self.pile[i] = None container.add(self.pile[end]) self.pile[end] = None