summaryrefslogtreecommitdiffstats
path: root/Lib/xml/sax/__init__.py
diff options
context:
space:
mode:
authorPaul Prescod <prescod@prescod.net>2000-09-15 18:38:47 (GMT)
committerPaul Prescod <prescod@prescod.net>2000-09-15 18:38:47 (GMT)
commit5c6bd313195fce075db106091f515766f7e78bf5 (patch)
treedb0d71757f3961686e47dfdb5042c8a8bac9c21a /Lib/xml/sax/__init__.py
parent6634b14f3b104fc365ba85bdc50e858dfe132bef (diff)
downloadcpython-5c6bd313195fce075db106091f515766f7e78bf5.zip
cpython-5c6bd313195fce075db106091f515766f7e78bf5.tar.gz
cpython-5c6bd313195fce075db106091f515766f7e78bf5.tar.bz2
Fixed some typos. Removed one obsolete comment.
Diffstat (limited to 'Lib/xml/sax/__init__.py')
-rw-r--r--Lib/xml/sax/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/xml/sax/__init__.py b/Lib/xml/sax/__init__.py
index 105af6b..d0f0155 100644
--- a/Lib/xml/sax/__init__.py
+++ b/Lib/xml/sax/__init__.py
@@ -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 )