Skip to content

Commit 84f14d3

Browse files
committed
ruff fix
1 parent 34cf4d1 commit 84f14d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/wasm-sourcemap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
__rootdir__ = os.path.dirname(__scriptdir__)
2525
sys.path.insert(0, __rootdir__)
2626

27-
from tools import utils, shared
27+
from tools import shared, utils
2828
from tools.system_libs import DETERMINISTIC_PREFIX
2929

3030
LLVM_CXXFILT = shared.llvm_tool_path('llvm-cxxfilt')
@@ -235,7 +235,7 @@ def extract_comp_dir_map(text):
235235

236236
def demangle_names(names):
237237
# Only demangle names that look mangled
238-
mangled_names = sorted(list({n for n in names if n.startswith('_Z')}))
238+
mangled_names = sorted({n for n in names if n.startswith('_Z')})
239239
if not mangled_names:
240240
return {}
241241
if not os.path.exists(LLVM_CXXFILT):
@@ -488,7 +488,7 @@ def build_sourcemap(entries, func_ranges, code_section_offset, options):
488488
# multiple disjoint PC ranges or is inlined to multiple callsites. Make the
489489
# 'names' list a unique list of names, and map the function ranges to the
490490
# indices in that list.
491-
names = sorted(list(set([item.name for item in func_ranges])))
491+
names = sorted(set([item.name for item in func_ranges]))
492492
name_to_id = {name: i for i, name in enumerate(names)}
493493
mappings = []
494494
sources_map = {}

0 commit comments

Comments
 (0)