Commit 9ca3f02d authored by Tim Peters's avatar Tim Peters

^D means EOF on Unix but not on Windows. Expand the example's prompt to

tell Windows Truth too.

Bugfix candidate.
parent 9e6fedd2
......@@ -271,7 +271,7 @@ def prompt(prompt):
fromaddr = prompt("From: ")
toaddrs = prompt("To: ").split()
print "Enter message, end with ^D:"
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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment