mirror of
https://github.com/python/cpython.git
synced 2025-10-27 16:57:08 +00:00
Get rid of a bunch more raw_input references
This commit is contained in:
parent
9e2b9665ae
commit
ce96f69d69
42 changed files with 222 additions and 144 deletions
|
|
@ -267,6 +267,12 @@ processing of the \rfc{822} headers. In particular, the `To' and
|
|||
\begin{verbatim}
|
||||
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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue