mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fixed some typos. Removed one obsolete comment.
This commit is contained in:
parent
6634b14f3b
commit
5c6bd31319
1 changed files with 2 additions and 3 deletions
|
@ -27,10 +27,9 @@ import saxutils
|
|||
def parse( filename_or_stream, handler, errorHandler=ErrorHandler() ):
|
||||
parser=ExpatParser()
|
||||
parser.setContentHandler( handler )
|
||||
parse.setErrorHandler( errorHandler )
|
||||
parser.setErrorHandler( errorHandler )
|
||||
parser.parse( filename_or_stream )
|
||||
|
||||
# this may not work yet...Expat doesn't handle buffer inputs
|
||||
def parseString( string, handler, errorHandler=ErrorHandler() ):
|
||||
try:
|
||||
import cStringIO
|
||||
|
@ -44,6 +43,6 @@ def parseString( string, handler, errorHandler=ErrorHandler() ):
|
|||
|
||||
parser=ExpatParser()
|
||||
parser.setContentHandler( handler )
|
||||
parse.setErrorHandler( errorHandler )
|
||||
parser.setErrorHandler( errorHandler )
|
||||
parser.parse( buf )
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue