diff options
author | Fred Drake <fdrake@acm.org> | 2001-07-19 20:57:23 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-07-19 20:57:23 (GMT) |
commit | 390e9dbd4f26e2108d02a22cbdfc95e442fd667f (patch) | |
tree | 512b5310a9caf95ba7a4becaa4fcf2eca145fbfb /Lib/sgmllib.py | |
parent | 0368bc44e82b422aa1e6ddca57cba8754103b465 (diff) | |
download | cpython-390e9dbd4f26e2108d02a22cbdfc95e442fd667f.zip cpython-390e9dbd4f26e2108d02a22cbdfc95e442fd667f.tar.gz cpython-390e9dbd4f26e2108d02a22cbdfc95e442fd667f.tar.bz2 |
Make the new docstrings better conform to Guido's style guide.
Diffstat (limited to 'Lib/sgmllib.py')
-rw-r--r-- | Lib/sgmllib.py | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py index e586024..f228e5b2 100644 --- a/Lib/sgmllib.py +++ b/Lib/sgmllib.py @@ -79,19 +79,27 @@ class SGMLParser: self.literal = 0 def setnomoretags(self): - """Enter literal mode (CDATA) till EOF. Intended for derived - classes only.""" + """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.""" + """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().)""" + """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) |