Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c0228a

Browse files
author
Skip Montanaro
committed
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).
1 parent 1cdd363 commit 1c0228a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/cgitb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ def reader(lnum=[lnum]):
211211
done[name] = 1
212212
if value is not __UNDEF__:
213213
if where == 'global': name = 'global ' + name
214-
elif where == 'local': name = name
215-
else: name = where + name.split('.')[-1]
214+
elif where != 'local': name = where + name.split('.')[-1]
216215
dump.append('%s = %s' % (name, pydoc.text.repr(value)))
217216
else:
218217
dump.append(name + ' undefined')

0 commit comments

Comments
 (0)