From 26f6bdf4f19336c125e3fac7aacaf55b312f474b Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Sat, 5 Jun 2004 19:15:34 +0000 Subject: [Bug #758665] cgitb.scanvars() fails because of an unititialized value variable. Patch from Robin Becker. --- Lib/cgitb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/cgitb.py b/Lib/cgitb.py index c65783f..33541fb 100644 --- a/Lib/cgitb.py +++ b/Lib/cgitb.py @@ -60,7 +60,7 @@ def lookup(name, frame, locals): def scanvars(reader, frame, locals): """Scan one logical line of Python and look up values of variables used.""" import tokenize, keyword - vars, lasttoken, parent, prefix = [], None, None, '' + vars, lasttoken, parent, prefix, value = [], None, None, '', __UNDEF__ for ttype, token, start, end, line in tokenize.generate_tokens(reader): if ttype == tokenize.NEWLINE: break if ttype == tokenize.NAME and token not in keyword.kwlist: -- cgit v0.12