Get rid of a bunch more raw_input references

This commit is contained in:
Neal Norwitz 2006-03-17 06:49:51 +00:00
parent 9e2b9665ae
commit ce96f69d69
42 changed files with 222 additions and 144 deletions

View file

@ -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')