diff Lib/idlelib/PyShell.py @ 25346:6dec74f44242 legacy-trunk

Fix bug I created during merge from Python-idle. Also, decided IDENTCHARS is better as global, after all.
author Kurt B. Kaiser <kbk@shore.net>
date Mon, 23 Sep 2002 04:10:37 +0000
parents 7de88cf0783e
children 9d50bc831bca
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py	Mon Sep 23 01:11:57 2002 +0000
+++ b/Lib/idlelib/PyShell.py	Mon Sep 23 04:10:37 2002 +0000
@@ -28,6 +28,8 @@
 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 @@
         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