]> granicus.if.org Git - python/commitdiff
Nigel Rowe's Patch
authorKurt B. Kaiser <kbk@shore.net>
Sat, 17 May 2003 03:51:57 +0000 (03:51 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Sat, 17 May 2003 03:51:57 +0000 (03:51 +0000)
[ 735527 ] Re Bug [ 678325 ] ParenMatching Missing AutoIndent

AutoIndent was merged with EditorWindow, this patch corrects
the references in ParenMatch.

Lib/idlelib/ParenMatch.py

index 678d1fd80de7e4dbd58b3cc77541bc2bf4505232..bd4e0776eb5c8090bf0813de4e0ca5ca0c2dc60f 100644 (file)
@@ -11,7 +11,7 @@ extensions what to capture the same event.
 """
 
 import PyParse
-from AutoIndent import AutoIndent, index2line
+from EditorWindow import EditorWindow, index2line
 from configHandler import idleConf
 
 class ParenMatch:
@@ -129,10 +129,10 @@ def keysym_type(ks):
         return "brace"
 
 class LastOpenBracketFinder:
-    num_context_lines = AutoIndent.num_context_lines
-    indentwidth = AutoIndent.indentwidth
-    tabwidth = AutoIndent.tabwidth
-    context_use_ps1 = AutoIndent.context_use_ps1
+    num_context_lines = EditorWindow.num_context_lines
+    indentwidth = EditorWindow.indentwidth
+    tabwidth = EditorWindow.tabwidth
+    context_use_ps1 = EditorWindow.context_use_ps1
 
     def __init__(self, editwin):
         self.editwin = editwin