Remove all definitions of raw_input() that were still scattered throughout the docs
from the time where there was neither input() nor raw_input().
diff --git a/Doc/library/smtplib.rst b/Doc/library/smtplib.rst
index 0653a50..790cacb 100644
--- a/Doc/library/smtplib.rst
+++ b/Doc/library/smtplib.rst
@@ -306,14 +306,8 @@
import smtplib
- def raw_input(prompt):
- import sys
- sys.stdout.write(prompt)
- sys.stdout.flush()
- return sys.stdin.readline()
-
def prompt(prompt):
- return raw_input(prompt).strip()
+ return input(prompt).strip()
fromaddr = prompt("From: ")
toaddrs = prompt("To: ").split()
@@ -324,7 +318,7 @@
% (fromaddr, ", ".join(toaddrs)))
while True:
try:
- line = raw_input()
+ line = input()
except EOFError:
break
if not line: