Use defaultdict in the other place

pull/7518/head
Jimmy Brisson 2018-07-03 10:03:27 -05:00 committed by Cruz Monrreal II
parent 573fd4f739
commit 4dfc20ccd8
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ class MemapParser(object):
if split_name[0] == '':
split_name = split_name[1:]
new_name = join(*split_name[:depth])
self.short_modules.setdefault(new_name, {})
self.short_modules.setdefault(new_name, defaultdict(int))
for section_idx, value in v.items():
self.short_modules[new_name].setdefault(section_idx, 0)
self.short_modules[new_name][section_idx] += self.modules[module_name][section_idx]