2016-12-16 00:29:59 -06:00
|
|
|
"""Outputter based on Python's pickle module.
|
|
|
|
The output of this outputter can be read with the pickle scraper."""
|
|
|
|
|
2016-11-27 01:42:59 -06:00
|
|
|
import pickle
|
|
|
|
|
2016-12-16 00:29:59 -06:00
|
|
|
def output(data, destination):
|
|
|
|
"""Output the given object into the specified pickle file."""
|
2016-11-27 01:58:47 -06:00
|
|
|
with open(destination, "wb") as out_file:
|
2016-11-27 01:42:59 -06:00
|
|
|
pickle.dump(data, out_file)
|