mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Make the new docstrings better conform to Guido's style guide.
This commit is contained in:
		
							parent
							
								
									0368bc44e8
								
							
						
					
					
						commit
						390e9dbd4f
					
				
					 1 changed files with 15 additions and 7 deletions
				
			
		| 
						 | 
					@ -79,19 +79,27 @@ def reset(self):
 | 
				
			||||||
        self.literal = 0
 | 
					        self.literal = 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def setnomoretags(self):
 | 
					    def setnomoretags(self):
 | 
				
			||||||
        """Enter literal mode (CDATA) till EOF.  Intended for derived
 | 
					        """Enter literal mode (CDATA) till EOF.
 | 
				
			||||||
        classes only."""
 | 
					
 | 
				
			||||||
 | 
					        Intended for derived classes only.
 | 
				
			||||||
 | 
					        """
 | 
				
			||||||
        self.nomoretags = self.literal = 1
 | 
					        self.nomoretags = self.literal = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def setliteral(self, *args):
 | 
					    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
 | 
					        self.literal = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def feed(self, data):
 | 
					    def feed(self, data):
 | 
				
			||||||
        """Feed some data to the parser.  Call this as often as you
 | 
					        """Feed some data to the parser.
 | 
				
			||||||
        want, with as little or as much text as you want (may include
 | 
					
 | 
				
			||||||
        '\n').  (This just saves the text, all the processing is done
 | 
					        Call this as often as you want, with as little or as much text
 | 
				
			||||||
        by goahead().)"""
 | 
					        as you want (may include '\n').  (This just saves the text,
 | 
				
			||||||
 | 
					        all the processing is done by goahead().)
 | 
				
			||||||
 | 
					        """
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.rawdata = self.rawdata + data
 | 
					        self.rawdata = self.rawdata + data
 | 
				
			||||||
        self.goahead(0)
 | 
					        self.goahead(0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue