diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2004-06-05 19:15:34 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2004-06-05 19:15:34 (GMT) |
commit | 26f6bdf4f19336c125e3fac7aacaf55b312f474b (patch) | |
tree | 0335971ae9d46913314592d2d7c46677fd9e0dc9 /Lib/cgitb.py | |
parent | 94afd3e7aef46fe4cb22f1f6b7026571897176e4 (diff) | |
download | cpython-26f6bdf4f19336c125e3fac7aacaf55b312f474b.zip cpython-26f6bdf4f19336c125e3fac7aacaf55b312f474b.tar.gz cpython-26f6bdf4f19336c125e3fac7aacaf55b312f474b.tar.bz2 |
[Bug #758665] cgitb.scanvars() fails because of an unititialized value variable. Patch from Robin Becker.
Diffstat (limited to 'Lib/cgitb.py')
-rw-r--r-- | Lib/cgitb.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |