asynchat + asyncore: Python 3 compatibility (#1402)

Includes an update to smtpd, which uses asynchat.
This commit is contained in:
Ray Kraesig
2017-06-20 13:15:58 -07:00
committed by Guido van Rossum
parent 86070643ac
commit 44127444d4
3 changed files with 56 additions and 46 deletions

View File

@@ -47,7 +47,7 @@ class SMTPChannel(asynchat.async_chat):
map: Optional[asyncore._maptype] = ...) -> None: ...
else:
def __init__(self, server: SMTPServer, conn: socket.socket, addr: Any, data_size_limit: int = ...) -> None: ...
def push(self, msg: Text) -> None: ...
def push(self, msg: bytes) -> None: ...
def collect_incoming_data(self, data: bytes) -> None: ...
def found_terminator(self) -> None: ...
def smtp_HELO(self, arg: str) -> None: ...