mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
#19662: Eliminate warnings in other test modules that use smtpd.
Eventually these will want to convert to decode_data=False, I think.
This commit is contained in:
parent
554bcbf1b9
commit
1144da5821
2 changed files with 7 additions and 4 deletions
|
@ -679,7 +679,8 @@ if threading:
|
|||
"""
|
||||
|
||||
def __init__(self, addr, handler, poll_interval, sockmap):
|
||||
smtpd.SMTPServer.__init__(self, addr, None, map=sockmap)
|
||||
smtpd.SMTPServer.__init__(self, addr, None, map=sockmap,
|
||||
decode_data=True)
|
||||
self.port = self.socket.getsockname()[1]
|
||||
self._handler = handler
|
||||
self._thread = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue