summaryrefslogtreecommitdiffstats
path: root/Lib/smtpd.py
diff options
context:
space:
mode:
authorGiampaolo RodolĂ  <g.rodola@gmail.com>2010-08-21 18:47:59 (GMT)
committerGiampaolo RodolĂ  <g.rodola@gmail.com>2010-08-21 18:47:59 (GMT)
commit5fe9cd53b2cd38c1098b4176f1273998153f7e65 (patch)
tree7e612f32de8add44591d709c475668e64552c692 /Lib/smtpd.py
parent5c8c9a2c330db5a96eb1149d388b411e7ec5acd3 (diff)
downloadcpython-5fe9cd53b2cd38c1098b4176f1273998153f7e65.zip
cpython-5fe9cd53b2cd38c1098b4176f1273998153f7e65.tar.gz
cpython-5fe9cd53b2cd38c1098b4176f1273998153f7e65.tar.bz2
revert changes made in r84236 committed by accident
Diffstat (limited to 'Lib/smtpd.py')
-rwxr-xr-xLib/smtpd.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/Lib/smtpd.py b/Lib/smtpd.py
index e8459f0..bd764cc 100755
--- a/Lib/smtpd.py
+++ b/Lib/smtpd.py
@@ -414,20 +414,7 @@ class SMTPServer(asyncore.dispatcher):
localaddr, remoteaddr), file=DEBUGSTREAM)
def handle_accept(self)
- try:
- conn, addr = self.accept()
- except TypeError:
- # sometimes accept() might return None
- return
- except socket.error, err:
- # ECONNABORTED might be thrown
- if err[0] != errno.ECONNABORTED:
- raise
- return
- else:
- # sometimes addr == None instead of (ip, port)
- if addr == None:
- return
+ conn, addr = self.accept()
print('Incoming connection from %s' % repr(addr), file=DEBUGSTREAM)
channel = self.channel_class(self, conn, addr)