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 autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [101.128.125.209]) by gnuweeb.org (Postfix) with ESMTPSA id E447B8198C; Mon, 19 Dec 2022 23:58:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1671494302; bh=wwosIRrU1buGOT8VRBoqSvXjHDueX+fgID4Cdy7wSiI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dEMqVAFrmMIzEMMbeeSz60ighVq9yh8C0tfZgDkxqF69Pgu0ogAr99o0+KI/CbeJK CqRhA1Yv7oijzxuFzKr5dDZXaXU7U1vaM43xhwXO2r1f0rRq8Z0UP2OzUizLCva6IN cQoOdOsaLdXkVO0fsBCtJxtqv77AwjiwbnOUdh2wpI6++Q5q2Gtm14fGRxbucx8uhv 7NUGNmfZr0tXAWJzwMKjmqkjabVkSVS3OomSwE5RP9I+zgsbd5Kx+zGPpeW9gfXDAV 6MEqdP+LFKNroKPJ+p30xttAN70LuJbHuNQ7MAvz9V7IiL48nj+Kf0N0x2JFbovA7q rUNl6awfDMi3g== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH v3 17/17] Remove some unused imports Date: Tue, 20 Dec 2022 06:57:21 +0700 Message-Id: <20221219235721.126-18-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20221219235721.126-1-kiizuha@gnuweeb.org> References: <20221219235721.126-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 b9adc4f..8810f18 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