def pharse1_process_dumps(editions_dump, works_dump, authors_dump, redirects_dump): writer = Writer() if not os.path.exists("solrdump"): os.makedirs("solrdump") redirect_db = process_redirect_dump(writer, redirects_dump) author_db = process_author_dump(writer, authors_dump) process_work_dump(writer, works_dump, author_db, redirect_db) author_db.close() author_db = None process_edition_dump(writer, editions_dump) writer.close() writer = None log("done")