Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e143bbb

Browse files
committed
fix documentation for ContentHandler.ignorableWhitespace()
(closes SF bug #881707)
1 parent 56fcc23 commit e143bbb

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

Doc/lib/xmlsaxhandler.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ \subsection{ContentHandler Objects \label{content-handler-objects}}
285285
\var{length} parameters.}
286286
\end{methoddesc}
287287

288-
\begin{methoddesc}[ContentHandler]{ignorableWhitespace}{}
288+
\begin{methoddesc}[ContentHandler]{ignorableWhitespace}{whitespace}
289289
Receive notification of ignorable whitespace in element content.
290290

291291
Validating Parsers must use this method to report each chunk

Lib/xml/sax/handler.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,7 @@ def ignorableWhitespace(self, whitespace):
177177
chunk, or they may split it into several chunks; however, all
178178
of the characters in any single event must come from the same
179179
external entity, so that the Locator provides useful
180-
information.
181-
182-
The application must not attempt to read from the array
183-
outside of the specified range."""
180+
information."""
184181

185182
def processingInstruction(self, target, data):
186183
"""Receive notification of a processing instruction.

0 commit comments

Comments
 (0)