From: Skip Montanaro Date: Mon, 7 Jun 2004 11:20:40 +0000 (+0000) Subject: Another nit found by Neal Norwitz using pychecker. This was caused by a X-Git-Tag: v2.4a1~231 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c0228a51902233b3478e835be65198d305824e4;p=python 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). --- 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')