summaryrefslogtreecommitdiff
path: root/Lib/smtpd.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-31 10:08:09 +0000
committerGeorg Brandl <georg@python.org>2010-07-31 10:08:09 +0000
commit17e3d698b512025d525c1ecb6b0531b575ad5518 (patch)
treec31086172ace8d2a6be741771fbb68aedc5b5b8f /Lib/smtpd.py
parentca9400f0519261a0d8a282ff1dcaadaddf00fd64 (diff)
downloadcpython-git-17e3d698b512025d525c1ecb6b0531b575ad5518.tar.gz
Avoid triggering DeprecationWarnings in test_smtpd and smtpd.
Diffstat (limited to 'Lib/smtpd.py')
-rwxr-xr-xLib/smtpd.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/smtpd.py b/Lib/smtpd.py
index dd8398836f..ca68790be0 100755
--- a/Lib/smtpd.py
+++ b/Lib/smtpd.py
@@ -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