From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from kanazawa.. (unknown [101.128.126.198]) by gnuweeb.org (Postfix) with ESMTPSA id D9C03814CB; Fri, 4 Nov 2022 18:10:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1667585437; bh=LojkhF+GuvsQFc9bI3TPef4f2Uy3XGvG8RFm+hLLgJA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N5/EtNirHavDCOE0M0SKv0qmXG3QrME+EMIm3wemjiZq2OCCGlpO/Bx995pwMaxsf AAGcCGOBvx7OVRu3pK68XJlkosK+FzBkhjgxXRlN0I0GuksoYsofafxPITIeHjBJbH cVa7+1KLYvfcz3ib5Wu7bYnLfZyvwmZ6AgaVa4Un3EBPqkCrbPVcwPaExqhEEzNibk 3D/yxwnp5v+dN6s60n3Rlmav1YBiicaxjL4il/V3fHW7WFz/uW6KRtvMmUkHx7Ho45 xWKUIOpd+LTQ8kdPP9Q7g3sjD5KeAqdxtryAY9ZaCnXUW1W3RDW21PqrZ8VJ3oCGDS 31gwhs/YM4kMQ== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH v1 16/16] Remove some unused imports Date: Sat, 5 Nov 2022 01:09:30 +0700 Message-Id: <20221104180931.3852-24-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221104180931.3852-1-kiizuha@gnuweeb.org> References: <20221104180931.3852-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Remove them while it is not used again, from the previous version, they are not removed. Signed-off-by: Muhammad Rizki --- daemon/atom/utils.py | 3 +-- daemon/dscord/gnuweeb/plugins/slash_commands/get_lore_mail.py | 2 -- daemon/dscord/mailer/listener.py | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/daemon/atom/utils.py b/daemon/atom/utils.py index 60f2c76..1181621 100644 --- a/daemon/atom/utils.py +++ b/daemon/atom/utils.py @@ -8,7 +8,7 @@ from enums import Platform from pyrogram.types import Chat, InlineKeyboardMarkup, InlineKeyboardButton from email.message import Message -from typing import Dict, Union +from typing import Union from slugify import slugify import traceback import hashlib @@ -18,7 +18,6 @@ import re import shutil import httpx import html -import quopri def get_email_msg_id(mail): diff --git a/daemon/dscord/gnuweeb/plugins/slash_commands/get_lore_mail.py b/daemon/dscord/gnuweeb/plugins/slash_commands/get_lore_mail.py index e4c171c..56330f3 100644 --- a/daemon/dscord/gnuweeb/plugins/slash_commands/get_lore_mail.py +++ b/daemon/dscord/gnuweeb/plugins/slash_commands/get_lore_mail.py @@ -3,8 +3,6 @@ # Copyright (C) 2022 Muhammad Rizki # -import asyncio -import discord from discord.ext import commands from discord import Interaction from discord import app_commands diff --git a/daemon/dscord/mailer/listener.py b/daemon/dscord/mailer/listener.py index 1764ea2..24f0a6c 100644 --- a/daemon/dscord/mailer/listener.py +++ b/daemon/dscord/mailer/listener.py @@ -5,7 +5,6 @@ # import asyncio -import traceback import re from apscheduler.schedulers.asyncio import AsyncIOScheduler from discord import File -- Muhammad Rizki