[Python-checkins] CVS: python/dist/src/Lib sgmllib.py,1.35,1.36
Fred L. Drake
fdrake@users.sourceforge.net
Thu, 19 Jul 2001 13:57:25 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv10484/Lib
Modified Files:
sgmllib.py
Log Message:
Make the new docstrings better conform to Guido's style guide.
Index: sgmllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sgmllib.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -r1.35 -r1.36
*** sgmllib.py 2001/07/19 20:08:04 1.35
--- sgmllib.py 2001/07/19 20:57:23 1.36
***************
*** 80,96 ****
def setnomoretags(self):
! """Enter literal mode (CDATA) till EOF. Intended for derived
! classes only."""
self.nomoretags = self.literal = 1
def setliteral(self, *args):
! """Enter literal mode (CDATA). Intended for derived classes only."""
self.literal = 1
def feed(self, data):
! """Feed some data to the parser. Call this as often as you
! want, with as little or as much text as you want (may include
! '\n'). (This just saves the text, all the processing is done
! by goahead().)"""
self.rawdata = self.rawdata + data
self.goahead(0)
--- 80,104 ----
def setnomoretags(self):
! """Enter literal mode (CDATA) till EOF.
!
! Intended for derived classes only.
! """
self.nomoretags = self.literal = 1
def setliteral(self, *args):
! """Enter literal mode (CDATA).
!
! Intended for derived classes only.
! """
self.literal = 1
def feed(self, data):
! """Feed some data to the parser.
!
! Call this as often as you want, with as little or as much text
! as you want (may include '\n'). (This just saves the text,
! all the processing is done by goahead().)
! """
!
self.rawdata = self.rawdata + data
self.goahead(0)