[Python-checkins] CVS: python/dist/src/Lib pprint.py,1.18,1.19
Barry Warsaw
bwarsaw@users.sourceforge.net
Tue, 27 Nov 2001 21:49:41 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv31732/Lib
Modified Files:
pprint.py
Log Message:
__format(): Applied SF patch #482003 by Skip to fix multiline dict
output.
Patch includes additional test case test_basic_line_wrap().
This patch is a candidate for Python 2.1.2.
Index: pprint.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pprint.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** pprint.py 2001/11/13 21:51:26 1.18
--- pprint.py 2001/11/28 05:49:39 1.19
***************
*** 159,163 ****
for key, ent in items[1:]:
rep = self.__repr(key, context, level)
! write(',\n%s: %s' % (' '*indent, rep))
self.__format(ent, stream, indent + _len(rep) + 2,
allowance + 1, context, level)
--- 159,163 ----
for key, ent in items[1:]:
rep = self.__repr(key, context, level)
! write(',\n%s%s: ' % (' '*indent, rep))
self.__format(ent, stream, indent + _len(rep) + 2,
allowance + 1, context, level)