From: Kurt B. Kaiser Date: Sat, 14 Sep 2002 02:50:56 +0000 (+0000) Subject: MERGE DS_RPC_BRANCH into MAIN X-Git-Tag: v2.3c1~4085 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee7afca550f69ace3e20d25b84432f45c246c600;p=python MERGE DS_RPC_BRANCH into MAIN PyShell.py don't track Py Idle patch 543222 - disable script bindings in shell since it was done differently in MAIN Remove "binding comments" 05 Aug 1.13.2.2 to 1.13.2.3 --- diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 9ef2ff7586..9c3aa50a86 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: <> event is defined in AutoIndent.py - -#$ event <> -#$ win -#$ unix - -#$ event <> -#$ win -#$ win -#$ unix -#$ unix - -#$ event <> -#$ win -#$ unix - -#$ event <> -#$ win -#$ unix - -#$ event <> -#$ win -#$ unix - -#$ event <> -#$ win -#$ unix - -#$ event <> - -#$ event <> - - 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: