[Python-checkins] python/dist/src/Lib cgitb.py,1.12,1.13
montanaro at users.sourceforge.net
montanaro at users.sourceforge.net
Mon Jun 7 07:20:42 EDT 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15933
Modified Files:
cgitb.py
Log Message:
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).
Index: cgitb.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/cgitb.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** cgitb.py 5 Jun 2004 19:15:34 -0000 1.12
--- cgitb.py 7 Jun 2004 11:20:40 -0000 1.13
***************
*** 212,217 ****
if value is not __UNDEF__:
if where == 'global': name = 'global ' + name
! elif where == 'local': name = name
! else: name = where + name.split('.')[-1]
dump.append('%s = %s' % (name, pydoc.text.repr(value)))
else:
--- 212,216 ----
if value is not __UNDEF__:
if where == 'global': name = 'global ' + name
! elif where != 'local': name = where + name.split('.')[-1]
dump.append('%s = %s' % (name, pydoc.text.repr(value)))
else:
More information about the Python-checkins
mailing list