[Python-checkins] CVS: python/dist/src/Lib smtpd.py,1.8,1.9
Barry Warsaw
bwarsaw@users.sourceforge.net
2001年10月05日 10:10:33 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv30165
Modified Files:
smtpd.py
Log Message:
SMTPServer.__init__(): Print the start information on the DEBUGSTREAM
so that it can be suppressed.
Index: smtpd.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/smtpd.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** smtpd.py 2001年10月04日 16:27:04 1.8
--- smtpd.py 2001年10月05日 17:10:31 1.9
***************
*** 283,287 ****
self.bind(localaddr)
self.listen(5)
! print '%s started at %s\n\tLocal addr: %s\n\tRemote addr:%s' % (
self.__class__.__name__, time.ctime(time.time()),
localaddr, remoteaddr)
--- 283,288 ----
self.bind(localaddr)
self.listen(5)
! print >> DEBUGSTREAM, \
! '%s started at %s\n\tLocal addr: %s\n\tRemote addr:%s' % (
self.__class__.__name__, time.ctime(time.time()),
localaddr, remoteaddr)