[Python-checkins] python/dist/src/Demo/xml elem_count.py, 1.1, 1.2 roundtrip.py, 1.1, 1.2 rss2html.py, 1.1, 1.2

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Sun Jul 18 08:11:34 CEST 2004


Update of /cvsroot/python/python/dist/src/Demo/xml
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31002
Modified Files:
	elem_count.py roundtrip.py rss2html.py 
Log Message:
Whitespace normalization, via reindent.py.
Index: elem_count.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Demo/xml/elem_count.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** elem_count.py	16 Oct 2000 15:27:05 -0000	1.1
--- elem_count.py	18 Jul 2004 06:11:32 -0000	1.2
***************
*** 31,35 ****
 print "%20s %d" % pair
 
! 
 parser = make_parser()
 parser.setContentHandler(FancyCounter())
--- 31,35 ----
 print "%20s %d" % pair
 
! 
 parser = make_parser()
 parser.setContentHandler(FancyCounter())
Index: roundtrip.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Demo/xml/roundtrip.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** roundtrip.py	16 Oct 2000 15:27:05 -0000	1.1
--- roundtrip.py	18 Jul 2004 06:11:32 -0000	1.2
***************
*** 17,21 ****
 
 # ContentHandler methods
! 
 def startDocument(self):
 self._out.write('<?xml version="1.0" encoding="iso-8859-1"?>\n')
--- 17,21 ----
 
 # ContentHandler methods
! 
 def startDocument(self):
 self._out.write('<?xml version="1.0" encoding="iso-8859-1"?>\n')
***************
*** 35,39 ****
 def ignorableWhitespace(self, content):
 self._out.write(content)
! 
 def processingInstruction(self, target, data):
 self._out.write('<?%s %s?>' % (target, data))
--- 35,39 ----
 def ignorableWhitespace(self, content):
 self._out.write(content)
! 
 def processingInstruction(self, target, data):
 self._out.write('<?%s %s?>' % (target, data))
Index: rss2html.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Demo/xml/rss2html.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** rss2html.py	16 Oct 2000 15:27:05 -0000	1.1
--- rss2html.py	18 Jul 2004 06:11:32 -0000	1.2
***************
*** 81,85 ****
 if name == "rss":
 self._out.write(bottom)
! 
 def characters(self, content):
 self._text = self._text + content
--- 81,85 ----
 if name == "rss":
 self._out.write(bottom)
! 
 def characters(self, content):
 self._text = self._text + content


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /