[Python-checkins] cpython (3.4): remove smtpd dead code (closes #23873)

benjamin.peterson python-checkins at python.org
Tue Apr 7 18:01:49 CEST 2015


https://hg.python.org/cpython/rev/81ce9d412a4c
changeset: 95475:81ce9d412a4c
branch: 3.4
parent: 95473:597768629c2e
user: Benjamin Peterson <benjamin at python.org>
date: Tue Apr 07 11:59:06 2015 -0400
summary:
 remove smtpd dead code (closes #23873)
Patch by Hoolean.
files:
 Lib/smtpd.py | 9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
diff --git a/Lib/smtpd.py b/Lib/smtpd.py
--- a/Lib/smtpd.py
+++ b/Lib/smtpd.py
@@ -476,9 +476,6 @@
 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 @@
 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')
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /