From e89e5fb85d4048f9eafd2621df801b23766d96ed Mon Sep 17 00:00:00 2001 From: Yclept Nemo Date: Sat, 9 Sep 2023 08:13:56 -0400 Subject: [PATCH] gh-108580: fix an oops --- Lib/test/test_importlib/identity.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Lib/test/test_importlib/identity.py b/Lib/test/test_importlib/identity.py index 9aefb7ed1059d0..49101f497607fa 100644 --- a/Lib/test/test_importlib/identity.py +++ b/Lib/test/test_importlib/identity.py @@ -262,7 +262,6 @@ def lstrip(entries): return strip def unbalance(entries): - return False index_candidates = [] type_candidates =\ [ ident_addr_domain_other @@ -277,8 +276,8 @@ def unbalance(entries): while j >= 0 and not (stop:=entries[i][j].category is quote): token = entries[i][j] if token.category not in type_candidates: - continue - if token.category is ident_name_other: + repls = () + elif token.category is ident_name_other: final = entries[i][j+1] is ident_name_only repls = get_name_qchar_idxs(token.value, not final) else: