From 1c0228a51902233b3478e835be65198d305824e4 Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Mon, 7 Jun 2004 11:20:40 +0000 Subject: [PATCH] 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). --- Lib/cgitb.py | 3 +-- 1 file changed, 1 insertion(+), 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') -- 2.50.1