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

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Mon Sep 22 02:27:34 EDT 2003


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv8142

Modified Files:
      Tag: release23-maint
	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.24.10.1
diff -C2 -d -r1.24 -r1.24.10.1
*** libsmtplib.tex	15 Jun 2003 23:08:45 -0000	1.24
--- libsmtplib.tex	22 Sep 2003 06:27:32 -0000	1.24.10.1
***************
*** 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