From: Kurt B. Kaiser <kbk@shore.net>
Date: Mon, 23 Sep 2002 04:10:37 +0000 (+0000)
Subject: Fix bug I created during merge from Python-idle.
X-Git-Tag: v2.3c1~4006
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b97641994617115321719d4ecf797a461e2d5cf2;p=python

Fix bug I created during merge from Python-idle.

Also, decided IDENTCHARS is better as global, after all.
---

diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 29ebd929a8..3a819a8317 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -28,6 +28,8 @@ import idlever
 import rpc
 import RemoteDebugger
 
+IDENTCHARS = string.ascii_letters + string.digits + "_"
+
 # XX hardwire this for now, remove later  KBK 09Jun02
 use_subprocess = 1 # Set to 1 to spawn subprocess for command execution
 
@@ -313,8 +315,6 @@ class ModifiedInterpreter(InteractiveInterpreter):
         linecache.cache[filename] = len(source)+1, 0, lines, filename
         return filename
     
-    IDENTCHARS = string.ascii_letters + string.digits + "_"
-    
     def showsyntaxerror(self, filename=None):
         """Extend base class method: Add Colorizing