File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -264,7 +264,6 @@ \subsection{SMTP Example \label{SMTP-example}}
264264
265265\begin {verbatim }
266266import smtplib
267- import string
268267
269268def prompt(prompt):
270269 return raw_input(prompt).strip()
@@ -275,7 +274,7 @@ \subsection{SMTP Example \label{SMTP-example}}
275274
276275# Add the From: and To: headers at the start!
277276msg = ("From: %s\r\nTo: %s\r\n\r\n"
278- % (fromaddr, string.join(toaddrs, ", ")))
277+ % (fromaddr, ", ".join(toaddrs )))
279278while 1:
280279 try:
281280 line = raw_input()
@@ -285,7 +284,7 @@ \subsection{SMTP Example \label{SMTP-example}}
285284 break
286285 msg = msg + line
287286
288- print "Message length is " + ` len(msg)`
287+ print "Message length is " + repr( len(msg))
289288
290289server = smtplib.SMTP('localhost')
291290server.set_debuglevel(1)
You can’t perform that action at this time.
0 commit comments