mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +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
|
@ -130,6 +130,11 @@ def getdata(r):
|
|||
sys.stdout.write(data)
|
||||
print '(end of data connection)'
|
||||
|
||||
def raw_input(prompt):
|
||||
sys.stdout.write(prompt)
|
||||
sys.stdout.flush()
|
||||
return sys.stdin.readline()
|
||||
|
||||
# Get a command from the user.
|
||||
#
|
||||
def getcommand():
|
||||
|
@ -143,4 +148,5 @@ def getcommand():
|
|||
|
||||
# Call the main program.
|
||||
#
|
||||
main()
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue