diff --git a/uncompyle6/scanners/scanner3.py b/uncompyle6/scanners/scanner3.py index 4e7333b9..0fe6a2c2 100644 --- a/uncompyle6/scanners/scanner3.py +++ b/uncompyle6/scanners/scanner3.py @@ -211,7 +211,7 @@ class Scanner3(Scanner): self, insts: list, next_tokens: list, inst: Instruction, t: Token, i: int, collection_type: str ) -> Optional[list]: """ - Try to a sequence of instruction that ends with a BUILD_xxx into a sequence that can + Try to a replace sequence of instruction that ends with a BUILD_xxx with a sequence that can be parsed much faster, but inserting the token boundary at the beginning of the sequence. """ count = t.attr @@ -375,8 +375,6 @@ class Scanner3(Scanner): ) return new_tokens - - def ingest(self, co, classname=None, code_objects={}, show_asm=None ) -> Tuple[list, dict]: """ diff --git a/uncompyle6/scanners/scanner37.py b/uncompyle6/scanners/scanner37.py index c93a822d..464669c9 100644 --- a/uncompyle6/scanners/scanner37.py +++ b/uncompyle6/scanners/scanner37.py @@ -76,8 +76,8 @@ class Scanner37(Scanner37Base): collection_enum = CONST_COLLECTIONS.index(collection_type) - # If we go there all instructions before tokens[i] are LOAD_CONST and we can replace - # add a boundary marker and change LOAD_CONST to something else + # If we get here, all instructions before tokens[i] are LOAD_CONST and we can replace + # add a boundary marker and change LOAD_CONST to something else. new_tokens = next_tokens[:-count] start_offset = tokens[collection_start].offset new_tokens.append(