[Python-checkins] python/dist/src/Lib cgitb.py,1.9.8.1,1.9.8.2

akuchling at users.sourceforge.net akuchling at users.sourceforge.net
Sat Jun 5 15:17:53 EDT 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25361

Modified Files:
      Tag: release23-maint
	cgitb.py 
Log Message:
[Bug #758665] cgitb.scanvars() fails because of an unititialized value variable.  Patch from Robin Becker.

Index: cgitb.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/cgitb.py,v
retrieving revision 1.9.8.1
retrieving revision 1.9.8.2
diff -C2 -d -r1.9.8.1 -r1.9.8.2
*** cgitb.py	6 May 2004 13:18:26 -0000	1.9.8.1
--- cgitb.py	5 Jun 2004 19:17:51 -0000	1.9.8.2
***************
*** 61,65 ****
      """Scan one logical line of Python and look up values of variables used."""
      import tokenize, keyword
!     vars, lasttoken, parent, prefix = [], None, None, ''
      for ttype, token, start, end, line in tokenize.generate_tokens(reader):
          if ttype == tokenize.NEWLINE: break
--- 61,65 ----
      """Scan one logical line of Python and look up values of variables used."""
      import tokenize, keyword
!     vars, lasttoken, parent, prefix, value = [], None, None, '', __UNDEF__
      for ttype, token, start, end, line in tokenize.generate_tokens(reader):
          if ttype == tokenize.NEWLINE: break




More information about the Python-checkins mailing list