mirror of
https://github.com/python/cpython.git
synced 2025-11-11 19:12:05 +00:00
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).
This commit is contained in:
parent
1cdd3632a0
commit
1c0228a519
1 changed files with 1 additions and 2 deletions
|
|
@ -211,8 +211,7 @@ def reader(lnum=[lnum]):
|
||||||
done[name] = 1
|
done[name] = 1
|
||||||
if value is not __UNDEF__:
|
if value is not __UNDEF__:
|
||||||
if where == 'global': name = 'global ' + name
|
if where == 'global': name = 'global ' + name
|
||||||
elif where == 'local': name = name
|
elif where != 'local': name = where + name.split('.')[-1]
|
||||||
else: name = where + name.split('.')[-1]
|
|
||||||
dump.append('%s = %s' % (name, pydoc.text.repr(value)))
|
dump.append('%s = %s' % (name, pydoc.text.repr(value)))
|
||||||
else:
|
else:
|
||||||
dump.append(name + ' undefined')
|
dump.append(name + ' undefined')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue