#NEWLINE# def set_document( doc ) : #NEWLINE# #INDENT# codec = coreapi . codecs . CoreJSONCodec ( ) #NEWLINE# content = codec . dump ( doc ) #NEWLINE# store = open ( document_path , 'wb' ) #NEWLINE# store . write ( content ) #NEWLINE# store . close ( )