[Idle-dev] CVS: idle ScriptBinding.py,1.9,1.10

Kurt B. Kaiser kbk@users.sourceforge.net
Tue, 17 Sep 2002 20:05:21 -0700


Update of /cvsroot/idlefork/idle
In directory usw-pr-cvs1:/tmp/cvs-serv29108

Modified Files:
	ScriptBinding.py 
Log Message:
Merge Py Idle changes:

Rev 1.11 GvR
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.

Rev 1.12 rhettinger
(skip, done differently in Idlefork)

Rev 1.13 time_one
(skip, NA)


Index: ScriptBinding.py
===================================================================
RCS file: /cvsroot/idlefork/idle/ScriptBinding.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** ScriptBinding.py	5 Sep 2002 02:31:20 -0000	1.9
--- ScriptBinding.py	18 Sep 2002 03:05:19 -0000	1.10
***************
*** 66,73 ****
          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",
--- 66,72 ----
          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",