From dbecd93b7203cd187c1978de1207c29d3a9a686c Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 6 Feb 2005 06:57:08 +0000 Subject: Replace list of constants with tuples of constants. --- Lib/cgitb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/cgitb.py') diff --git a/Lib/cgitb.py b/Lib/cgitb.py index db46b25d60..735683e50c 100644 --- a/Lib/cgitb.py +++ b/Lib/cgitb.py @@ -146,7 +146,7 @@ function calls leading up to the error, in the order they occurred.

''' if name in done: continue done[name] = 1 if value is not __UNDEF__: - if where in ['global', 'builtin']: + if where in ('global', 'builtin'): name = ('%s ' % where) + strong(name) elif where == 'local': name = strong(name) -- cgit v1.2.1