[XML-SIG] [ pyxml-Bugs-453777 ] prepareParser in sax/drivers2/drv_sgmlop
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 21 Aug 2001 08:35:05 -0700
Bugs item #453777, was opened at 2001-08-21 08:35
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=453777&group_id=6473
Category: SAX
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Walter Dörwald (doerwalter)
Assigned to: Nobody/Anonymous (nobody)
Summary: prepareParser in sax/drivers2/drv_sgmlop
Initial Comment:
The following little script:
---------
import cStringIO as StringIO
from xml.sax import saxutils, xmlreader
from xml.sax.drivers2 import drv_sgmlop
class StringInputSource(xmlreader.InputSource):
def __init__(self, text):
xmlreader.InputSource.__init__(self)
self.setByteStream(StringIO.StringIO
(text))
parser = drv_sgmlop.create_parser()
parser.parse(StringInputSource("<foo/>"))
---------
raises the following exception:
---------
Traceback (most recent call last):
File "test.py", line 25, in ?
parser.parse(StringInputSource(code))
File "/usr/local/lib/python2.1/site-
packages/_xmlplus/sax/drivers2/drv_sgmlop.py", line
49, in parse
self.prepareParser(source)
AttributeError: SaxParser instance has no
attribute 'prepareParser'
---------
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=453777&group_id=6473