[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
- Previous message: [Python-checkins] python/nondist/peps pep-0008.txt, 1.18,
1.19 pep-0009.txt, 1.9, 1.10 pep-0010.txt, 1.3,
1.4 pep-0012.txt, 1.3, 1.4 pep-0102.txt, 1.12,
1.13 pep-0201.txt, 1.20, 1.21 pep-0202.txt, 1.7,
1.8 pep-0214.txt, 1.12, 1.13 pep-0231.txt, 1.6,
1.7 pep-0232.txt, 1.12, 1.13 pep-0251.txt, 1.12,
1.13 pep-0274.txt, 1.4, 1.5 pep-0292.txt, 1.5, 1.6
- Next message: [Python-checkins] python/dist/src/Doc/lib libsmtplib.tex, 1.24,
1.24.10.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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')
- Previous message: [Python-checkins] python/nondist/peps pep-0008.txt, 1.18,
1.19 pep-0009.txt, 1.9, 1.10 pep-0010.txt, 1.3,
1.4 pep-0012.txt, 1.3, 1.4 pep-0102.txt, 1.12,
1.13 pep-0201.txt, 1.20, 1.21 pep-0202.txt, 1.7,
1.8 pep-0214.txt, 1.12, 1.13 pep-0231.txt, 1.6,
1.7 pep-0232.txt, 1.12, 1.13 pep-0251.txt, 1.12,
1.13 pep-0274.txt, 1.4, 1.5 pep-0292.txt, 1.5, 1.6
- Next message: [Python-checkins] python/dist/src/Doc/lib libsmtplib.tex, 1.24,
1.24.10.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-checkins
mailing list