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 D818C814AD; Fri, 4 Nov 2022 18:10:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1667585432; bh=LojkhF+GuvsQFc9bI3TPef4f2Uy3XGvG8RFm+hLLgJA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e7Kic+dQOFaiVYyHLJNQeqxRmwyTs0DA8YZel4kgDBts3Z3CjBCVSKJdCf/Eoc+Aj PqhdrO4ujdMlxd/LAU9GUKsktSkE4r7vcC8dpDpXa+lvYEoNkTrsY3Cwd4/6pt4f1O mfU60rt+sXuz9lSGcwEPKZngkwhaJRvhi+gVoo2CJZ2Lq6Y74AK3nx1XYillYhPDd5 NjcudzKCTlJGOokn67t83xiXTsk6xrURd+Y8mLzLn4vYvbbiKaVkjgdllPM1zK6LDe OYme/GB8AR+M0OeS10pv9NFOjQSkuK1Ka8QvknoQ0Zttx0OJoJ5QkxvSU1A/TEYSiF jO+wNIH3wS8mw== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH v1 15/15] Remove some unused imports Date: Sat, 5 Nov 2022 01:09:28 +0700 Message-Id: <20221104180931.3852-22-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