mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +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
10
Lib/code.py
10
Lib/code.py
|
@ -269,12 +269,14 @@ class InteractiveConsole(InteractiveInterpreter):
|
|||
The returned line does not include the trailing newline.
|
||||
When the user enters the EOF key sequence, EOFError is raised.
|
||||
|
||||
The base implementation uses the built-in function
|
||||
raw_input(); a subclass may replace this with a different
|
||||
implementation.
|
||||
The base implementation uses sys.stdin.readline(); a subclass
|
||||
may replace this with a different implementation.
|
||||
|
||||
"""
|
||||
return raw_input(prompt)
|
||||
sys.stdout.write(prompt)
|
||||
sys.stdout.flush()
|
||||
return sys.stdin.readline()
|
||||
|
||||
|
||||
|
||||
def interact(banner=None, readfunc=None, local=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue