mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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
|
@ -9,6 +9,11 @@ import sys
|
|||
import time
|
||||
import calendar
|
||||
|
||||
def raw_input(prompt):
|
||||
sys.stdout.write(prompt)
|
||||
sys.stdout.flush()
|
||||
return sys.stdin.readline()
|
||||
|
||||
def main():
|
||||
# Note that the range checks below also check for bad types,
|
||||
# e.g. 3.14 or (). However syntactically invalid replies
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue