mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Avoid triggering DeprecationWarnings in test_smtpd and smtpd.
This commit is contained in:
parent
ca9400f051
commit
17e3d698b5
2 changed files with 31 additions and 30 deletions
|
|
@ -293,10 +293,10 @@ class SMTPChannel(asynchat.async_chat):
|
|||
else:
|
||||
data.append(text)
|
||||
self.received_data = NEWLINE.join(data)
|
||||
status = self.__server.process_message(self.peer,
|
||||
self.mailfrom,
|
||||
self.rcpttos,
|
||||
self.received_data)
|
||||
status = self.smtp_server.process_message(self.peer,
|
||||
self.mailfrom,
|
||||
self.rcpttos,
|
||||
self.received_data)
|
||||
self.rcpttos = []
|
||||
self.mailfrom = None
|
||||
self.smtp_state = self.COMMAND
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue