[Python-checkins] CVS: python/dist/src/Tools/idle ScriptBinding.py,1.10,1.11
Guido van Rossum
gvanrossum@users.sourceforge.net
Tue, 07 Aug 2001 10:15:38 -0700
Update of /cvsroot/python/python/dist/src/Tools/idle
In directory usw-pr-cvs1:/tmp/cvs-serv10010
Modified Files:
ScriptBinding.py
Log Message:
Fix for SF bug #448835.
Fix this to work with the new (still undocumented) tabnanny API.
I'm afraid Stephen will have to add this fix to the IDLE fork code
base as well.
Index: ScriptBinding.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/idle/ScriptBinding.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** ScriptBinding.py 2001/01/17 08:48:39 1.10
--- ScriptBinding.py 2001/08/07 17:15:36 1.11
***************
*** 70,77 ****
import tabnanny
import tokenize
- tabnanny.reset_globals()
f = open(filename, 'r')
try:
! tokenize.tokenize(f.readline, tabnanny.tokeneater)
except tokenize.TokenError, msg:
self.errorbox("Token error",
--- 70,76 ----
import tabnanny
import tokenize
f = open(filename, 'r')
try:
! tabnanny.process_tokens(tokenize.generate_tokens(f.readline))
except tokenize.TokenError, msg:
self.errorbox("Token error",