diff options
author | Georg Brandl <georg@python.org> | 2007-09-04 07:15:32 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-04 07:15:32 +0000 |
commit | 6911e3ce3f72af759908b869b73391ea00d328e2 (patch) | |
tree | 5d4ff6070cb3f0f46f0a31ee4805b41053a06b48 /Doc/library/smtplib.rst | |
parent | c9879246a2dd33a217960496fdf4606cb117c6a6 (diff) | |
download | cpython-git-6911e3ce3f72af759908b869b73391ea00d328e2.tar.gz |
Convert all print statements in the docs.
Diffstat (limited to 'Doc/library/smtplib.rst')
-rw-r--r-- | Doc/library/smtplib.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/smtplib.rst b/Doc/library/smtplib.rst index 61b90a8240..3173f352b1 100644 --- a/Doc/library/smtplib.rst +++ b/Doc/library/smtplib.rst @@ -317,7 +317,7 @@ example doesn't do any processing of the :rfc:`822` headers. In particular, the fromaddr = prompt("From: ") toaddrs = prompt("To: ").split() - print "Enter message, end with ^D (Unix) or ^Z (Windows):" + print("Enter message, end with ^D (Unix) or ^Z (Windows):") # Add the From: and To: headers at the start! msg = ("From: %s\r\nTo: %s\r\n\r\n" @@ -331,7 +331,7 @@ example doesn't do any processing of the :rfc:`822` headers. In particular, the break msg = msg + line - print "Message length is " + repr(len(msg)) + print("Message length is", len(msg)) server = smtplib.SMTP('localhost') server.set_debuglevel(1) |