Corrected a mistake, not fond of keeping garbage tokens tbh, will monitor closely

This commit is contained in:
Maximilien Rigaut 2022-05-31 04:30:28 +02:00
parent e4407e93a5
commit 40d51d9aaf
No known key found for this signature in database
GPG Key ID: 4F14B23709ADA5B1
1 changed files with 2 additions and 1 deletions

View File

@ -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