Use attr insead of pattrr for non-strings

This commit is contained in:
rocky
2022-04-26 02:34:00 -04:00
parent 4879a60ecc
commit d48801964c
5 changed files with 14 additions and 7 deletions

View File

@@ -65,10 +65,12 @@ class Scanner37(Scanner37Base):
for j in range(collection_start, i):
if tokens[j].kind not in (
"LOAD_CODE",
"LOAD_CONST",
"LOAD_FAST",
"LOAD_GLOBAL",
"LOAD_NAME",
"LOAD_STR",
):
return next_tokens + [t]