summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/idlelib/PyShell.py44
1 files changed, 4 insertions, 40 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 9ef2ff7..9c3aa50 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -55,40 +55,6 @@ def linecache_checkcache(orig_checkcache=linecache.checkcache):
cache.update(save)
linecache.checkcache = linecache_checkcache
-
-# Note: <<newline-and-indent>> event is defined in AutoIndent.py
-
-#$ event <<plain-newline-and-indent>>
-#$ win <Control-j>
-#$ unix <Control-j>
-
-#$ event <<beginning-of-line>>
-#$ win <Control-a>
-#$ win <Home>
-#$ unix <Control-a>
-#$ unix <Home>
-
-#$ event <<history-next>>
-#$ win <Alt-n>
-#$ unix <Alt-n>
-
-#$ event <<history-previous>>
-#$ win <Alt-p>
-#$ unix <Alt-p>
-
-#$ event <<interrupt-execution>>
-#$ win <Control-c>
-#$ unix <Control-c>
-
-#$ event <<end-of-file>>
-#$ win <Control-d>
-#$ unix <Control-d>
-
-#$ event <<open-stack-viewer>>
-
-#$ event <<toggle-debugger>>
-
-
class PyShellEditorWindow(EditorWindow):
"Regular text edit window when a shell is present"
# XXX ought to merge with regular editor window
@@ -496,8 +462,7 @@ class PyShell(OutputWindow):
import __builtin__
__builtin__.quit = __builtin__.exit = "To exit, type Ctrl-D."
- self.auto = self.extensions["AutoIndent"] # Required extension
- self.auto.config(usetabs=1, indentwidth=8, context_use_ps1=1)
+ self.config(usetabs=1, indentwidth=8, context_use_ps1=1)
text = self.text
text.configure(wrap="char")
@@ -627,7 +592,6 @@ class PyShell(OutputWindow):
# Break cycles
self.interp = None
self.console = None
- self.auto = None
self.flist.pyshell = None
self.history = None
EditorWindow._close(self)
@@ -736,7 +700,7 @@ class PyShell(OutputWindow):
self.text.insert("insert", "\n")
self.text.see("insert")
else:
- self.auto.auto_indent(event)
+ self.auto_indent(event)
return "break"
def enter_callback(self, event):
@@ -776,7 +740,7 @@ class PyShell(OutputWindow):
# If we're in the current input before its last line,
# insert a newline right at the insert point
if self.text.compare("insert", "<", "end-1c linestart"):
- self.auto.auto_indent(event)
+ self.auto_indent(event)
return "break"
# We're in the last line; append a newline and submit it
self.text.mark_set("insert", "end-1c")
@@ -784,7 +748,7 @@ class PyShell(OutputWindow):
self.text.insert("insert", "\n")
self.text.see("insert")
else:
- self.auto.auto_indent(event)
+ self.auto_indent(event)
self.text.tag_add("stdin", "iomark", "end-1c")
self.text.update_idletasks()
if self.reading: