[Python-checkins] python/dist/src/Lib cgitb.py,1.11,1.12

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


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

Modified Files:
	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.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** cgitb.py	6 May 2004 13:13:44 -0000	1.11
--- cgitb.py	5 Jun 2004 19:15:34 -0000	1.12
***************
*** 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