Fix merge conflicts

stix2.1
Chris Lenk 2017-10-06 14:19:09 -04:00
parent 9ea4344ca7
commit 66e57ced25
4 changed files with 3 additions and 20 deletions

View File

@ -1,11 +1,6 @@
"""
Python STIX 2.0 FileSystem Source/Sink
Classes:
FileSystemStore
FileSystemSink
FileSystemSource
TODO:
Test everything
"""
@ -160,8 +155,9 @@ class FileSystemSource(DataSource):
all_data = self.query(query=query, _composite_filters=_composite_filters)
if len(all_data):
stix_obj = parse(sorted(all_data, key=lambda k: k['modified'])[0])
if all_data:
stix_obj = sorted(all_data, key=lambda k: k['modified'])[0]
stix_obj = parse(stix_obj)
else:
stix_obj = None

View File

@ -1,9 +1,6 @@
"""
Filters for Python STIX 2.0 DataSources, DataSinks, DataStores
Classes:
Filter
"""
import collections

View File

@ -1,11 +1,6 @@
"""
Python STIX 2.0 Memory Source/Sink
Classes:
MemoryStore
MemorySink
MemorySource
TODO:
Run through tests again, lot of changes.

View File

@ -1,11 +1,6 @@
"""
Python STIX 2.0 TAXII Source/Sink
Classes:
TAXIICollectionStore
TAXIICollectionSink
TAXIICollectionSource
TODO:
Test everything