]> granicus.if.org Git - python/commitdiff
Fix bug I created during merge from Python-idle.
authorKurt B. Kaiser <kbk@shore.net>
Mon, 23 Sep 2002 04:10:37 +0000 (04:10 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Mon, 23 Sep 2002 04:10:37 +0000 (04:10 +0000)
Also, decided IDENTCHARS is better as global, after all.

Lib/idlelib/PyShell.py

index 29ebd929a8413ef9400cf5c7a47f0b7c4cd58bee..3a819a8317fefeddc6c3ea23cedcc58985f81f9b 100644 (file)
@@ -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