Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b976419

Browse files
committed
Fix bug I created during merge from Python-idle.
Also, decided IDENTCHARS is better as global, after all.
1 parent e49dd4c commit b976419

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/idlelib/PyShell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
import rpc
2929
import RemoteDebugger
3030

31+
IDENTCHARS = string.ascii_letters + string.digits + "_"
32+
3133
# XX hardwire this for now, remove later KBK 09Jun02
3234
use_subprocess = 1 # Set to 1 to spawn subprocess for command execution
3335

@@ -313,8 +315,6 @@ def stuffsource(self, source):
313315
linecache.cache[filename] = len(source)+1, 0, lines, filename
314316
return filename
315317

316-
IDENTCHARS = string.ascii_letters + string.digits + "_"
317-
318318
def showsyntaxerror(self, filename=None):
319319
"""Extend base class method: Add Colorizing
320320

0 commit comments

Comments
 (0)