diff options
Diffstat (limited to 'Tools/idle/PyShell.py')
-rw-r--r-- | Tools/idle/PyShell.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Tools/idle/PyShell.py b/Tools/idle/PyShell.py index e01cad8..bd095cf 100644 --- a/Tools/idle/PyShell.py +++ b/Tools/idle/PyShell.py @@ -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] ... |