make Memory datastore return path where data was saved to

master
Emmanuelle Vargas-Gonzalez 2018-11-29 10:25:15 -05:00
parent 682e90ccaa
commit 79c9d85072
2 changed files with 2 additions and 1 deletions

View File

@ -309,7 +309,7 @@ class DataSource(with_metaclass(ABCMeta)):
""" """
def creator_of(self, obj): def creator_of(self, obj):
"""Retrieve the Identity refered to by the object's `created_by_ref`. """Retrieve the Identity referred to by the object's `created_by_ref`.
Args: Args:
obj: The STIX object whose `created_by_ref` property will be looked obj: The STIX object whose `created_by_ref` property will be looked

View File

@ -221,6 +221,7 @@ class MemorySink(DataSink):
with io.open(path, "w", encoding=encoding) as f: with io.open(path, "w", encoding=encoding) as f:
bundle = bundle.serialize(pretty=True, encoding=encoding, ensure_ascii=False) bundle = bundle.serialize(pretty=True, encoding=encoding, ensure_ascii=False)
f.write(bundle) f.write(bundle)
return path
save_to_file.__doc__ = MemoryStore.save_to_file.__doc__ save_to_file.__doc__ = MemoryStore.save_to_file.__doc__