From 3e7d7916a74a6bed94bf6a0a29b63ce61f903099 Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Tue, 28 Mar 2023 12:23:46 +0800 Subject: [PATCH] PEP8 --- Whatsapp_Chat_Exporter/extract.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Whatsapp_Chat_Exporter/extract.py b/Whatsapp_Chat_Exporter/extract.py index a565326..d863c4c 100644 --- a/Whatsapp_Chat_Exporter/extract.py +++ b/Whatsapp_Chat_Exporter/extract.py @@ -536,9 +536,10 @@ def create_html( w3css_path = os.path.join(static_folder, "w3.css") if not os.path.isfile(w3css_path): with urllib.request.urlopen(w3css) as resp: - with open(w3css_path, "wb") as f: f.write(resp.read()) + with open(w3css_path, "wb") as f: + f.write(resp.read()) w3css = os.path.join(offline_static, "w3.css") - + for current, contact in enumerate(data): if len(data[contact].messages) == 0: continue