summaryrefslogtreecommitdiff
path: root/Lib/cgitb.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2004-06-07 11:20:40 +0000
committerSkip Montanaro <skip@pobox.com>2004-06-07 11:20:40 +0000
commit24acc554204c0e4d52f75730024534ffbdd805fa (patch)
tree57f41fa1989dcf1007997695b78b11ca7f18c6fc /Lib/cgitb.py
parentf758eb373520f0cf8415722b6b07e2f922f21d02 (diff)
downloadcpython-24acc554204c0e4d52f75730024534ffbdd805fa.tar.gz
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 33541fb8fc..f75a84ce94 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')