black format

This commit is contained in:
Balakrishnan Balasubramanian 2024-05-26 12:49:48 -04:00
parent 1d54e2232f
commit c66fe37eb4
2 changed files with 9 additions and 2 deletions

View File

@ -340,7 +340,9 @@ def make_pop_server_callback(mails_path: Path, users: list[User], timeout_second
async def session_cb(reader: StreamReader, writer: StreamWriter):
c_shared_state.set(s_state)
ip, _ = writer.get_extra_info("peername")
c_state.set(State(reader=reader, writer=writer, ip=ip, req_id=s_state.next_id()))
c_state.set(
State(reader=reader, writer=writer, ip=ip, req_id=s_state.next_id())
)
logger.info("Got pop server callback")
try:
try:

View File

@ -20,7 +20,12 @@ logger = logging.getLogger("smtp")
class MyHandler(AsyncMessage):
def __init__(self, mails_path: Path, mbox_finder: Callable[[str], list[str]], listener_type: str):
def __init__(
self,
mails_path: Path,
mbox_finder: Callable[[str], list[str]],
listener_type: str,
):
super().__init__()
self.mails_path = mails_path
self.mbox_finder = mbox_finder