summaryrefslogtreecommitdiffstats
path: root/Lib/cgitb.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2004-06-07 11:20:40 (GMT)
committerSkip Montanaro <skip@pobox.com>2004-06-07 11:20:40 (GMT)
commit1c0228a51902233b3478e835be65198d305824e4 (patch)
tree86cd351564075df59d7480d93737ac52f84de5db /Lib/cgitb.py
parent1cdd3632a0eeffd1efc71c6d650b5e340536cb63 (diff)
downloadcpython-1c0228a51902233b3478e835be65198d305824e4.zip
cpython-1c0228a51902233b3478e835be65198d305824e4.tar.gz
cpython-1c0228a51902233b3478e835be65198d305824e4.tar.bz2
Another nit found by Neal Norwitz using pychecker. This was caused by a
too-mechanical translation when converting html() to text() (simply stripped strong() where it appeared).
Diffstat (limited to 'Lib/cgitb.py')
-rw-r--r--Lib/cgitb.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/cgitb.py b/Lib/cgitb.py
index 33541fb..f75a84c 100644
--- a/Lib/cgitb.py
+++ b/Lib/cgitb.py
@@ -211,8 +211,7 @@ function calls leading up to the error, in the order they occurred.
done[name] = 1
if value is not __UNDEF__:
if where == 'global': name = 'global ' + name
- elif where == 'local': name = name
- else: name = where + name.split('.')[-1]
+ elif where != 'local': name = where + name.split('.')[-1]
dump.append('%s = %s' % (name, pydoc.text.repr(value)))
else:
dump.append(name + ' undefined')