mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-22035 Use map comprehension instead of loop in mongosymb.py
This commit is contained in:
parent
fffc3c12ac
commit
02e2602d97
@ -36,10 +36,7 @@ def symbolize_frames(trace_doc, dbg_path_resolver, symbolizer_path=None, dsym_hi
|
||||
"""Makes a map from binary load address to description of library from the somap, which is
|
||||
a list of dictionaries describing individual loaded libraries.
|
||||
"""
|
||||
base_addr_map = {}
|
||||
for so_entry in somap_list:
|
||||
base_addr_map[so_entry["b"]] = so_entry
|
||||
return base_addr_map
|
||||
return { so_entry["b"] : so_entry for so_entry in somap_list }
|
||||
|
||||
base_addr_map = make_base_addr_map(trace_doc["processInfo"]["somap"])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user