Skip to content

Commit

Permalink
Separate variables to avoid collision
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Sep 4, 2023
1 parent 8afc277 commit f7f6794
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chocimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,10 @@ def process(fn, *, fix=False, extcall=()):
if lose: print("LOSE:", lose)
if gain: print("GAIN:", gain)
wanted = []
for fn in want:
prev = Ctx.got_imports.get(fn, Ctx.want_imports[fn]);
if prev == fn: wanted.append(fn)
else: wanted.append(prev + ": " + fn)
for func in want:
prev = Ctx.got_imports.get(func, Ctx.want_imports[func]);
if prev == func: wanted.append(func)
else: wanted.append(prev + ": " + func)
wanted = ", ".join(wanted)
print("WANT:", wanted)
if Ctx.autoimport_range:
Expand Down

0 comments on commit f7f6794

Please sign in to comment.