diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-12-30 13:26:34 -0500 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-12-30 13:26:34 -0500 |
commit | 02e2602d975004268ff390241fdbcb4eace48400 (patch) | |
tree | b1fb6819b18e8e53b0256f1074fd037feeec7762 /buildscripts/mongosymb.py | |
parent | fffc3c12ac811b6481a0669fc620f4230a5ce2cb (diff) | |
download | mongo-02e2602d975004268ff390241fdbcb4eace48400.tar.gz |
SERVER-22035 Use map comprehension instead of loop in mongosymb.py
Diffstat (limited to 'buildscripts/mongosymb.py')
-rwxr-xr-x | buildscripts/mongosymb.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/buildscripts/mongosymb.py b/buildscripts/mongosymb.py index 174a805b412..e5267b6cfaa 100755 --- a/buildscripts/mongosymb.py +++ b/buildscripts/mongosymb.py @@ -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"]) |