deepy/utils/stream_pickler.py
def dump_one(elt_to_pickle, file_obj):
        """
        dumps one element to file_obj, a file opened in write mode
        """
        pickled_elt_str = dumps(elt_to_pickle)
        file_obj.write(pickled_elt_str)
        # record separator is a blank line
        # (since pickled_elt_str might contain its own newlines)
        file_obj.write('\n\n')
def dump_one(elt_to_pickle, file_obj):
        """
        dumps one element to file_obj, a file opened in write mode
        """
        pickled_elt_str = dumps(elt_to_pickle)
        file_obj.write(pickled_elt_str)
        # record separator is a blank line
        # (since pickled_elt_str might contain its own newlines)
        file_obj.write('\n\n')
dumps one element to file_obj, a file opened in write mode