Rename History to IdleHistory.

Add isatty() to pseudo files.
This commit is contained in:
Guido van Rossum 1999-05-21 04:46:17 +00:00
parent 945507edf6
commit b6f8cf123e
2 changed files with 7 additions and 74 deletions

View file

@ -275,7 +275,7 @@ class PyShell(OutputWindow):
menu_specs.insert(len(menu_specs)-2, ("debug", "_Debug"))
# New classes
from History import History
from IdleHistory import History
def __init__(self, flist=None):
self.interp = ModifiedInterpreter(self)
@ -439,6 +439,9 @@ class PyShell(OutputWindow):
return ""
return line
def isatty(self):
return 1
def cancel_callback(self, event):
try:
if self.text.compare("sel.first", "!=", "sel.last"):
@ -634,6 +637,9 @@ class PseudoFile:
def flush(self):
pass
def isatty(self):
return 1
usage_msg = """\
usage: idle.py [-c command] [-d] [-e] [-s] [-t title] [arg] ...