for entry in f_entries:
key_ = self._get_key_from_imported_entry(entry)
self._add_description(entry)
hashed_entries[key_].append(entry)
// deduplicate across statements
for key_ in hashed_entries:
// skip the existing entries from other statements. add remaining
n = len(entries[key_])
After Change
for entry in f_entries:
key_ = self._get_key_from_imported_entry(entry)
self._add_description(entry)
hashed_entries.setdefault(key_, []).append(entry)
// deduplicate across statements
for key_ in hashed_entries:
// skip the existing entries from other statements. add remaining
if not key_ in entries: