summaryrefslogtreecommitdiff
path: root/buildscripts/mongosymb.py
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-12-30 13:26:34 -0500
committerAndy Schwerin <schwerin@mongodb.com>2015-12-30 13:26:34 -0500
commit02e2602d975004268ff390241fdbcb4eace48400 (patch)
treeb1fb6819b18e8e53b0256f1074fd037feeec7762 /buildscripts/mongosymb.py
parentfffc3c12ac811b6481a0669fc620f4230a5ce2cb (diff)
downloadmongo-02e2602d975004268ff390241fdbcb4eace48400.tar.gz
SERVER-22035 Use map comprehension instead of loop in mongosymb.py
Diffstat (limited to 'buildscripts/mongosymb.py')
-rwxr-xr-xbuildscripts/mongosymb.py5
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"])