[Python-checkins] CVS: python/dist/src/Tools/idle ScriptBinding.py,1.10,1.11

Guido van Rossum gvanrossum@users.sourceforge.net
2001年8月07日 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",

AltStyle によって変換されたページ (->オリジナル) /