diff options
| author | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-17 06:49:51 +0000 |
|---|---|---|
| committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-17 06:49:51 +0000 |
| commit | ce96f69d69a6020c780145c89a17a8391b63624b (patch) | |
| tree | 7325a9bfaddf191e49910532df1fa4210c335196 /Tools/scripts/treesync.py | |
| parent | 9e2b9665ae9f94a07da54156c48e2cd411a23746 (diff) | |
| download | cpython-git-ce96f69d69a6020c780145c89a17a8391b63624b.tar.gz | |
Get rid of a bunch more raw_input references
Diffstat (limited to 'Tools/scripts/treesync.py')
| -rwxr-xr-x | Tools/scripts/treesync.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools/scripts/treesync.py b/Tools/scripts/treesync.py index ab9324baee..4fb1798c60 100755 --- a/Tools/scripts/treesync.py +++ b/Tools/scripts/treesync.py @@ -187,6 +187,11 @@ def copy(src, dst, rmode="rb", wmode="wb", answer='ask'): f.close() g.close() +def raw_input(prompt): + sys.stdout.write(prompt) + sys.stdout.flush() + return sys.stdin.readline() + def okay(prompt, answer='ask'): answer = answer.strip().lower() if not answer or answer[0] not in 'ny': |
