summaryrefslogtreecommitdiffstats
path: root/Lib/smtpd.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-04-07 15:59:06 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-04-07 15:59:06 (GMT)
commit033c58ad972973ab4b8a87bede922bc9bf1a2cf9 (patch)
treea46f3e48f137b1f777ffc352bfbffe6f49cc4070 /Lib/smtpd.py
parentb32fb8d274bba84711d670800b69153137e851c9 (diff)
downloadcpython-033c58ad972973ab4b8a87bede922bc9bf1a2cf9.zip
cpython-033c58ad972973ab4b8a87bede922bc9bf1a2cf9.tar.gz
cpython-033c58ad972973ab4b8a87bede922bc9bf1a2cf9.tar.bz2
remove smtpd dead code (closes #23873)
Patch by Hoolean.
Diffstat (limited to 'Lib/smtpd.py')
-rwxr-xr-xLib/smtpd.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/smtpd.py b/Lib/smtpd.py
index 0d0030a..db7c867 100755
--- a/Lib/smtpd.py
+++ b/Lib/smtpd.py
@@ -476,9 +476,6 @@ class SMTPChannel(asynchat.async_chat):
if not self.extended_smtp and params:
self.push(syntaxerr)
return
- if not address:
- self.push(syntaxerr)
- return
if self.mailfrom:
self.push('503 Error: nested MAIL command')
return
@@ -529,15 +526,9 @@ class SMTPChannel(asynchat.async_chat):
else:
self.push(syntaxerr)
return
- if not address:
- self.push(syntaxerr)
- return
if params and len(params.keys()) > 0:
self.push('555 RCPT TO parameters not recognized or not implemented')
return
- if not address:
- self.push('501 Syntax: RCPT TO: <address>')
- return
self.rcpttos.append(address)
print('recips:', self.rcpttos, file=DEBUGSTREAM)
self.push('250 OK')