fix: [stix2 import] Replacing unnecessary defaultdict by dict

pull/4841/head
chrisr3d 2019-07-04 14:32:08 +02:00
parent e32ef1b0c6
commit 428fe502b4
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ class StixParser():
@staticmethod
def fetch_network_traffic_objects_and_references(objects):
references = defaultdict(dict)
references = {}
for key, value in objects.items():
if isinstance(value, (stix2.DomainName, stix2.IPv4Address, stix2.IPv6Address)):
references[key] = value