Skip to content

Commit

Permalink
chore: refactor iterating over symbol dict
Browse files Browse the repository at this point in the history
Co-authored-by: László Kiss Kollár <lkollar@users.noreply.github.com>
  • Loading branch information
mayeut and lkollar authored Sep 9, 2021
1 parent 619af6d commit fed00a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auditwheel/elfutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ def filter_undefined_symbols(
undef_symbols.add(sym.name)

result = {}
for lib in symbols:
intersection = set(symbols[lib]) & undef_symbols
for lib, sym_list in symbols:
intersection = set(sym_list) & undef_symbols
if intersection:
result[lib] = sorted(intersection)

Expand Down

0 comments on commit fed00a8

Please sign in to comment.