mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
Rename History to IdleHistory.
Add isatty() to pseudo files.
This commit is contained in:
parent
945507edf6
commit
b6f8cf123e
2 changed files with 7 additions and 74 deletions
|
|
@ -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] ...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue