From 6c29f796caa998fae98f9b732784a25da5446da9 Mon Sep 17 00:00:00 2001 From: balki <3070606-balki@users.noreply.gitlab.com> Date: Wed, 19 Dec 2018 22:07:19 -0500 Subject: [PATCH] writelines --- mail4one/pop3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail4one/pop3.py b/mail4one/pop3.py index 2a4fdad..0745941 100644 --- a/mail4one/pop3.py +++ b/mail4one/pop3.py @@ -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):