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
|
@ -2,6 +2,7 @@
|
|||
|
||||
import _tkinter
|
||||
import os
|
||||
import sys
|
||||
|
||||
tk = _tkinter.create(os.environ['DISPLAY'], 'wish', 'Tk', 1)
|
||||
tk.call('update')
|
||||
|
@ -12,7 +13,9 @@ while 1:
|
|||
if cmd: prompt = ''
|
||||
else: prompt = '% '
|
||||
try:
|
||||
line = raw_input(prompt)
|
||||
sys.stdout.write(prompt)
|
||||
sys.stdout.flush()
|
||||
line = sys.stdin.readline()
|
||||
except EOFError:
|
||||
break
|
||||
cmd = cmd + (line + '\n')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue