remove unused imports
This commit is contained in:
parent
fbb2cf38ae
commit
520dfd7b14
@ -2,11 +2,8 @@ import asyncio
|
|||||||
import contextlib
|
import contextlib
|
||||||
import contextvars
|
import contextvars
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
import ssl
|
import ssl
|
||||||
import uuid
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from hashlib import sha256
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from .config import User
|
from .config import User
|
||||||
from .pwhash import parse_hash, check_pass, PWInfo
|
from .pwhash import parse_hash, check_pass, PWInfo
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
import ssl
|
import ssl
|
||||||
import sys
|
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from getpass import getpass
|
from getpass import getpass
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import io
|
|
||||||
import logging
|
import logging
|
||||||
import mailbox
|
|
||||||
import ssl
|
import ssl
|
||||||
import uuid
|
import uuid
|
||||||
import shutil
|
import shutil
|
||||||
@ -13,11 +11,9 @@ from email.message import Message
|
|||||||
import email.policy
|
import email.policy
|
||||||
from email.generator import BytesGenerator
|
from email.generator import BytesGenerator
|
||||||
import tempfile
|
import tempfile
|
||||||
import random
|
|
||||||
|
|
||||||
from aiosmtpd.handlers import Mailbox, AsyncMessage
|
from aiosmtpd.handlers import AsyncMessage
|
||||||
from aiosmtpd.smtp import SMTP, DATA_SIZE_DEFAULT
|
from aiosmtpd.smtp import SMTP
|
||||||
from aiosmtpd.smtp import SMTP as SMTPServer
|
|
||||||
from aiosmtpd.smtp import Envelope as SMTPEnvelope
|
from aiosmtpd.smtp import Envelope as SMTPEnvelope
|
||||||
from aiosmtpd.smtp import Session as SMTPSession
|
from aiosmtpd.smtp import Session as SMTPSession
|
||||||
|
|
||||||
@ -31,7 +27,7 @@ class MyHandler(AsyncMessage):
|
|||||||
self.mbox_finder = mbox_finder
|
self.mbox_finder = mbox_finder
|
||||||
|
|
||||||
async def handle_DATA(
|
async def handle_DATA(
|
||||||
self, server: SMTPServer, session: SMTPSession, envelope: SMTPEnvelope
|
self, server: SMTP, session: SMTPSession, envelope: SMTPEnvelope
|
||||||
) -> str:
|
) -> str:
|
||||||
self.rcpt_tos = envelope.rcpt_tos
|
self.rcpt_tos = envelope.rcpt_tos
|
||||||
self.peer = session.peer
|
self.peer = session.peer
|
||||||
|
Loading…
Reference in New Issue
Block a user