[Python-checkins] python/dist/src/Doc/lib libsmtplib.tex,1.24,1.25

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Mon Sep 22 02:25:13 EDT 2003


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv7731
Modified Files:
	libsmtplib.tex 
Log Message:
Clean-up example code: remove string module and backticks.
Index: libsmtplib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libsmtplib.tex,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** libsmtplib.tex	15 Jun 2003 23:08:45 -0000	1.24
--- libsmtplib.tex	22 Sep 2003 06:25:10 -0000	1.25
***************
*** 265,269 ****
 \begin{verbatim}
 import smtplib
- import string
 
 def prompt(prompt):
--- 265,268 ----
***************
*** 276,280 ****
 # Add the From: and To: headers at the start!
 msg = ("From: %s\r\nTo: %s\r\n\r\n"
! % (fromaddr, string.join(toaddrs, ", ")))
 while 1:
 try:
--- 275,279 ----
 # Add the From: and To: headers at the start!
 msg = ("From: %s\r\nTo: %s\r\n\r\n"
! % (fromaddr, ", ".join(toaddrs)))
 while 1:
 try:
***************
*** 286,290 ****
 msg = msg + line
 
! print "Message length is " + `len(msg)`
 
 server = smtplib.SMTP('localhost')
--- 285,289 ----
 msg = msg + line
 
! print "Message length is " + repr(len(msg))
 
 server = smtplib.SMTP('localhost')


More information about the Python-checkins mailing list

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