summaryrefslogtreecommitdiffstats
path: root/Tools/idle/PyShell.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-05-21 04:46:17 (GMT)
committerGuido van Rossum <guido@python.org>1999-05-21 04:46:17 (GMT)
commitb6f8cf123eda17204ad2002a205dd25a2107f86d (patch)
treeede286af8b4290e46c724bed37b27d3e6afaad35 /Tools/idle/PyShell.py
parent945507edf65eff9f4e577b1fd2dc6963e440b46b (diff)
downloadcpython-b6f8cf123eda17204ad2002a205dd25a2107f86d.zip
cpython-b6f8cf123eda17204ad2002a205dd25a2107f86d.tar.gz
cpython-b6f8cf123eda17204ad2002a205dd25a2107f86d.tar.bz2
Rename History to IdleHistory.
Add isatty() to pseudo files.
Diffstat (limited to 'Tools/idle/PyShell.py')
-rw-r--r--Tools/idle/PyShell.py8
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] ...