Skip to content

Commit

Permalink
pythongh-108580: fix an oops
Browse files Browse the repository at this point in the history
  • Loading branch information
orbisvicis committed Sep 18, 2023
1 parent 62b4956 commit e89e5fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Lib/test/test_importlib/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ def lstrip(entries):
return strip

def unbalance(entries):
return False
index_candidates = []
type_candidates =\
[ ident_addr_domain_other
Expand All @@ -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:
Expand Down

0 comments on commit e89e5fb

Please sign in to comment.