writelines

This commit is contained in:
Balakrishnan Balasubramanian 2018-12-19 22:07:19 -05:00
parent 4823eb53e7
commit 6c29f796ca

View File

@ -225,7 +225,7 @@ async def transaction_stage(deleted_items_path: Path):
def delete_messages(delete_ids, deleted_items_path: Path):
with deleted_items_path.open(mode="w") as f:
f.writelines(delete_ids)
f.writelines(f"{did}\n" for did in delete_ids)
async def new_session(stream_reader: asyncio.StreamReader, stream_writer: asyncio.StreamWriter):